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

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

Issue 2775483003: Use public Service Manager Connector API in Blink (Closed)
Patch Set: . Created 3 years, 9 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
Index: content/renderer/mojo/blink_connector_js_wrapper.h
diff --git a/content/renderer/mojo/blink_connector_js_wrapper.h b/content/renderer/mojo/blink_connector_js_wrapper.h
index 198c91233283801c7e1adf1661e542dc26359f8d..54f53c26a055e45b0b3e571827a70ee7d5dadc7a 100644
--- a/content/renderer/mojo/blink_connector_js_wrapper.h
+++ b/content/renderer/mojo/blink_connector_js_wrapper.h
@@ -15,12 +15,14 @@
#include "mojo/public/cpp/system/message_pipe.h"
#include "v8/include/v8.h"
-namespace content {
+namespace service_manager {
+class Connector;
+}
-class BlinkConnectorImpl;
+namespace content {
-// A JS wrapper around blink::Connector that allows connecting to remote
-// services.
+// A JS wrapper around service_manager::Connector that allows connecting to
+// remote services.
class CONTENT_EXPORT BlinkConnectorJsWrapper
: public gin::Wrappable<BlinkConnectorJsWrapper> {
public:
@@ -28,7 +30,7 @@ class CONTENT_EXPORT BlinkConnectorJsWrapper
static gin::Handle<BlinkConnectorJsWrapper> Create(
v8::Isolate* isolate,
v8::Handle<v8::Context> context,
- BlinkConnectorImpl* remote_interfaces);
+ service_manager::Connector* remote_interfaces);
// gin::Wrappable<BlinkConnectorJsWrapper> overrides.
gin::ObjectTemplateBuilder GetObjectTemplateBuilder(
@@ -51,7 +53,7 @@ class CONTENT_EXPORT BlinkConnectorJsWrapper
BlinkConnectorJsWrapper(v8::Isolate* isolate,
v8::Handle<v8::Context> context,
- base::WeakPtr<BlinkConnectorImpl> connector);
+ base::WeakPtr<service_manager::Connector> connector);
void CallJsFactory(const ScopedJsFactory& factory,
mojo::ScopedMessagePipeHandle pipe);
@@ -61,7 +63,7 @@ class CONTENT_EXPORT BlinkConnectorJsWrapper
v8::Isolate* isolate_;
v8::Global<v8::Context> context_;
- base::WeakPtr<BlinkConnectorImpl> connector_;
+ base::WeakPtr<service_manager::Connector> connector_;
base::WeakPtrFactory<BlinkConnectorJsWrapper> weak_factory_;
« no previous file with comments | « content/renderer/mojo/blink_connector_impl_unittest.cc ('k') | content/renderer/mojo/blink_connector_js_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698