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