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

Unified Diff: sky/engine/core/script/dart_controller.h

Issue 1197133004: Add support for snapshot loading to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix mirror-system.sky 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/core/core.gni ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/script/dart_controller.h
diff --git a/sky/engine/core/script/dart_controller.h b/sky/engine/core/script/dart_controller.h
index af2de5feca30bb03d9e9f5aa46633069d12dbc7d..8834b84792c7c6947517f9b45641b5055ab482aa 100644
--- a/sky/engine/core/script/dart_controller.h
+++ b/sky/engine/core/script/dart_controller.h
@@ -18,6 +18,7 @@ namespace blink {
class AbstractModule;
class BuiltinSky;
class DOMDartState;
+class DartSnapshotLoader;
class DartValue;
class HTMLScriptElement;
class KURL;
@@ -35,6 +36,7 @@ class DartController {
// Can either issue the url load ourselves or take an existing response:
void LoadMainLibrary(const KURL& url, mojo::URLResponsePtr response = nullptr);
+ void LoadSnapshot(const KURL& url, mojo::URLResponsePtr response = nullptr);
void LoadScriptInModule(AbstractModule* module,
const String& source,
@@ -57,9 +59,11 @@ class DartController {
const TextPosition& position);
void DidLoadMainLibrary(KURL url);
+ void DidLoadSnapshot();
OwnPtr<DOMDartState> dom_dart_state_;
OwnPtr<BuiltinSky> builtin_sky_;
+ OwnPtr<DartSnapshotLoader> snapshot_loader_;
base::WeakPtrFactory<DartController> weak_factory_;
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/script/dart_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698