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