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

Unified Diff: content/renderer/mojo/service_registry_js_wrapper.h

Issue 1470153002: [mojo] Enable ServiceRegistryImpl to override remote services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-testing-3
Patch Set: Created 4 years, 11 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 | « content/common/mojo/service_registry_impl.cc ('k') | content/renderer/mojo/service_registry_js_wrapper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/mojo/service_registry_js_wrapper.h
diff --git a/content/renderer/mojo/service_registry_js_wrapper.h b/content/renderer/mojo/service_registry_js_wrapper.h
index 73046862dbbe26e70bc01dc5c98be50f1cd757e6..543d214c109dfb3588cace09b408d9a2d35e45b6 100644
--- a/content/renderer/mojo/service_registry_js_wrapper.h
+++ b/content/renderer/mojo/service_registry_js_wrapper.h
@@ -12,7 +12,11 @@
#include "gin/handle.h"
#include "gin/object_template_builder.h"
#include "gin/wrappable.h"
-#include "mojo/public/cpp/system/core.h"
+#include "mojo/public/cpp/system/handle.h"
+
+namespace v8 {
+class Isolate;
+}
namespace content {
@@ -33,6 +37,8 @@ class CONTENT_EXPORT ServiceRegistryJsWrapper
v8::Isolate* isolate) override;
// JS interface implementation.
+ void AddServiceOverrideForTesting(const std::string& service_name,
+ v8::Local<v8::Function> service_factory);
mojo::Handle ConnectToService(const std::string& service_name);
static gin::WrapperInfo kWrapperInfo;
« no previous file with comments | « content/common/mojo/service_registry_impl.cc ('k') | content/renderer/mojo/service_registry_js_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698