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

Unified Diff: sky/shell/ui/internals.cc

Issue 1193763004: Expose the asset_bundle service in SkyShell (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: use source_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/shell/ui/internals.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/internals.cc
diff --git a/sky/shell/ui/internals.cc b/sky/shell/ui/internals.cc
index f6049e672a6bb88cd39b567f5f1e16dab2bd7424..676f3521ba9ca2215db736b46aa0a542ed92f5cb 100644
--- a/sky/shell/ui/internals.cc
+++ b/sky/shell/ui/internals.cc
@@ -7,6 +7,7 @@
#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/array.h"
+#include "services/asset_bundle/asset_unpacker_impl.h"
#include "sky/engine/tonic/dart_builtin.h"
#include "sky/engine/tonic/dart_converter.h"
#include "sky/engine/tonic/dart_error.h"
@@ -69,13 +70,23 @@ void Internals::Create(Dart_Isolate isolate,
CHECK(!LogIfError(Dart_SetNativeResolver(library, Resolver, Symbolizer)));
}
-Internals::Internals(mojo::ServiceProviderPtr service_provider)
- : service_provider_(service_provider.Pass()) {
+Internals::Internals(mojo::ServiceProviderPtr platform_service_provider)
+ : service_provider_impl_(GetProxy(&service_provider_)),
+ platform_service_provider_(platform_service_provider.Pass()) {
+ service_provider_impl_.set_fallback_service_provider(
+ platform_service_provider_.get());
+ service_provider_impl_.AddService<mojo::asset_bundle::AssetUnpacker>(this);
}
Internals::~Internals() {
}
+void Internals::Create(
+ mojo::ApplicationConnection* connection,
+ mojo::InterfaceRequest<mojo::asset_bundle::AssetUnpacker> request) {
+ new mojo::asset_bundle::AssetUnpackerImpl(request.Pass());
+}
+
mojo::Handle Internals::TakeServicesProvidedByEmbedder() {
return service_provider_.PassInterface().PassHandle().release();
}
« no previous file with comments | « sky/shell/ui/internals.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698