tree: e7154f9c5e59542bc4e3b086e7d98f6e94b1f82a [path history] [tgz]
  1. analytics/
  2. testdata/
  3. allocator.h
  4. bidirectional_fit_reuse_allocator.cc
  5. bidirectional_fit_reuse_allocator.h
  6. bidirectional_fit_reuse_allocator_test.cc
  7. bit_cast.h
  8. concurrent_map.h
  9. concurrent_map_test.cc
  10. concurrent_ptr.h
  11. concurrent_ptr_test.cc
  12. first_fit_reuse_allocator.cc
  13. first_fit_reuse_allocator.h
  14. first_fit_reuse_allocator_test.cc
  15. fixed_no_free_allocator.cc
  16. fixed_no_free_allocator.h
  17. fixed_no_free_allocator_test.cc
  18. hash.cc
  19. hash.h
  20. memory_pool.h
  21. memory_scope.cc
  22. memory_scope.h
  23. memory_scope_test.cc
  24. move.h
  25. multipart_allocator.cc
  26. multipart_allocator.h
  27. multipart_allocator_test.cc
  28. nb.gyp
  29. pointer_arithmetic.h
  30. polymorphic_downcast.h
  31. README.md
  32. rect.h
  33. ref_counted.cc
  34. ref_counted.h
  35. reuse_allocator_base.cc
  36. reuse_allocator_base.h
  37. reuse_allocator_benchmark.cc
  38. rewindable_vector.h
  39. rewindable_vector_test.cc
  40. run_all_unittests.cc
  41. scoped_ptr.h
  42. simple_profiler.cc
  43. simple_profiler.h
  44. simple_profiler_test.cc
  45. simple_thread.cc
  46. simple_thread.h
  47. starboard_memory_allocator.h
  48. std_allocator.h
  49. std_allocator_test.cc
  50. string_interner.cc
  51. string_interner.h
  52. string_interner_test.cc
  53. test_thread.h
  54. thread_collision_warner.cc
  55. thread_collision_warner.h
  56. thread_local_boolean.h
  57. thread_local_object.h
  58. thread_local_object_test.cc
  59. thread_local_pointer.h
src/nb/README.md

Nanobase

Nanobase is essentially a minified/lightweight version of Chromium‘s base library, though it does include utility classes that Chromium’s base does not.

Its usefulness is found in the fact that its only dependency is starboard, making it very portable and easy to include in projects that don‘t want to depend on Chromium’s base (which currently would require the Chromium repository to be available and that may not be desirable).

An example project that depends on nb is glimp, which was the project that initiated the creation of nb. We wanted glimp to be portable alongside Starboard, and so in order to enable that, we wanted to avoid a dependency on Chromium's base.