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