tree: c7e7eb48764b8bc0ee8a7230e830c81863a9d6d5 [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. 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. memory_scope.cc
  24. memory_scope.h
  25. memory_scope_test.cc
  26. move.h
  27. multipart_allocator.cc
  28. multipart_allocator.h
  29. multipart_allocator_test.cc
  30. nb.gyp
  31. nb_test.gyp
  32. pointer_arithmetic.h
  33. polymorphic_downcast.h
  34. README.md
  35. rect.h
  36. ref_counted.cc
  37. ref_counted.h
  38. reuse_allocator_base.cc
  39. reuse_allocator_base.h
  40. reuse_allocator_benchmark.cc
  41. rewindable_vector.h
  42. rewindable_vector_test.cc
  43. run_all_unittests.cc
  44. scoped_ptr.h
  45. simple_profiler.cc
  46. simple_profiler.h
  47. simple_profiler_test.cc
  48. simple_thread.cc
  49. simple_thread.h
  50. starboard_aligned_memory_deleter.h
  51. starboard_memory_allocator.h
  52. std_allocator.h
  53. std_allocator_test.cc
  54. string_interner.cc
  55. string_interner.h
  56. string_interner_test.cc
  57. test_thread.h
  58. thread_collision_warner.cc
  59. thread_collision_warner.h
  60. thread_local_boolean.h
  61. thread_local_object.h
  62. thread_local_object_test.cc
  63. 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.