Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: sky/engine/tonic/dart_state.h

Issue 1202283004: Factor DartLibraryProvider out of DartLoader (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/tonic/dart_snapshot_loader.cc ('k') | sky/engine/tonic/dart_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_state.h
diff --git a/sky/engine/tonic/dart_state.h b/sky/engine/tonic/dart_state.h
index 83eca4da71f52477da342c92db545596694c1747..18b5b3c3efc3b63f85192d02af3d772242153238 100644
--- a/sky/engine/tonic/dart_state.h
+++ b/sky/engine/tonic/dart_state.h
@@ -19,6 +19,7 @@
namespace blink {
class DartClassLibrary;
class DartExceptionFactory;
+class DartLibraryLoader;
class DartStringCache;
class DartTimerHeap;
@@ -51,8 +52,9 @@ class DartState : public base::SupportsUserData {
void SetIsolate(Dart_Isolate isolate);
DartClassLibrary& class_library() { return *class_library_; }
- DartStringCache& string_cache() { return *string_cache_; }
DartExceptionFactory& exception_factory() { return *exception_factory_; }
+ DartLibraryLoader& library_loader() { return *library_loader_; }
+ DartStringCache& string_cache() { return *string_cache_; }
DartTimerHeap& timer_heap() { return *timer_heap_; }
Dart_Handle index_handle() { return index_handle_.value(); }
@@ -62,8 +64,9 @@ class DartState : public base::SupportsUserData {
private:
Dart_Isolate isolate_;
OwnPtr<DartClassLibrary> class_library_;
- OwnPtr<DartStringCache> string_cache_;
OwnPtr<DartExceptionFactory> exception_factory_;
+ OwnPtr<DartLibraryLoader> library_loader_;
+ OwnPtr<DartStringCache> string_cache_;
OwnPtr<DartTimerHeap> timer_heap_;
DartPersistentValue index_handle_;
« no previous file with comments | « sky/engine/tonic/dart_snapshot_loader.cc ('k') | sky/engine/tonic/dart_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698