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

Unified Diff: content/public/renderer/service_registry_js.h

Issue 302573002: Add a Javascript wrapper around ServiceRegistry and expose it to WebUI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render-view-shell
Patch Set: rebase Created 6 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 | « content/public/common/service_registry.h ('k') | content/renderer/service_registry_js_wrapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/renderer/service_registry_js.h
diff --git a/content/public/renderer/service_registry_js.h b/content/public/renderer/service_registry_js.h
new file mode 100644
index 0000000000000000000000000000000000000000..d9c93d00f92202f6c74cda43313db43487228fcd
--- /dev/null
+++ b/content/public/renderer/service_registry_js.h
@@ -0,0 +1,24 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_PUBLIC_RENDERER_SERVICE_REGISTRY_JS_H_
+#define CONTENT_PUBLIC_RENDERER_SERVICE_REGISTRY_JS_H_
+
+#include "content/common/content_export.h"
+#include "v8/include/v8.h"
+
+namespace content {
+
+class ServiceRegistry;
+
+CONTENT_EXPORT extern const char kServiceRegistryModuleName[];
+
+// Returns a JS wrapper around ServiceRegistry that allows connecting to remote
+// services.
+CONTENT_EXPORT v8::Handle<v8::Value> WrapServiceRegistry(
+ v8::Isolate* isolate, ServiceRegistry* service_registry);
raymes 2014/06/24 06:29:24 nit: newline between params?
Sam McNally 2014/06/24 08:45:01 Done.
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_SERVICE_REGISTRY_JS_H_
« no previous file with comments | « content/public/common/service_registry.h ('k') | content/renderer/service_registry_js_wrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698