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

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

Issue 1212623002: Support snapshots in sky_shell (again) (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/core/script/dart_controller.h ('k') | sky/engine/public/sky/sky_view.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.cc
diff --git a/sky/engine/core/script/dart_controller.cc b/sky/engine/core/script/dart_controller.cc
index f12119736a7e871e90073b41bfe6b1a57e8a8ddd..489d8c11da4a651af0aa2779e48bb6766432c1d3 100644
--- a/sky/engine/core/script/dart_controller.cc
+++ b/sky/engine/core/script/dart_controller.cc
@@ -149,10 +149,11 @@ void DartController::DidLoadSnapshot() {
DartInvokeAppField(library, ToDart("main"), 0, nullptr);
}
-void DartController::LoadSnapshot(const KURL& url, mojo::URLResponsePtr response) {
+void DartController::RunFromSnapshot(
+ mojo::ScopedDataPipeConsumerHandle snapshot) {
snapshot_loader_ = adoptPtr(new DartSnapshotLoader(dart_state()));
snapshot_loader_->LoadSnapshot(
- response->body.Pass(),
+ snapshot.Pass(),
base::Bind(&DartController::DidLoadSnapshot, weak_factory_.GetWeakPtr()));
}
« no previous file with comments | « sky/engine/core/script/dart_controller.h ('k') | sky/engine/public/sky/sky_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698