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

Unified Diff: content/public/browser/gpu_service_registry.h

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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/browser/content_browser_client.h ('k') | content/public/browser/gpu_service_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/gpu_service_registry.h
diff --git a/content/public/browser/gpu_service_registry.h b/content/public/browser/gpu_service_registry.h
index e1455f3dab4e81d6f283fc907310d0777aaca5bf..487acf5010842ee4a6a33ab7ffd5760460840236 100644
--- a/content/public/browser/gpu_service_registry.h
+++ b/content/public/browser/gpu_service_registry.h
@@ -5,19 +5,24 @@
#ifndef CONTENT_PUBLIC_BROWSER_GPU_INTERFACE_REGISTRY_H_
#define CONTENT_PUBLIC_BROWSER_GPU_INTERFACE_REGISTRY_H_
-#include "content/common/content_export.h"
+#include <string>
-namespace service_manager {
-class InterfaceProvider;
-}
+#include "content/common/content_export.h"
+#include "mojo/public/cpp/bindings/interface_request.h"
+#include "mojo/public/cpp/system/message_pipe.h"
namespace content {
-// Get service_manager::InterfaceProvider that can be used to bind interfaces
-// registered
-// via ContentGpuClient::ExposeInterfacesToBrowser().
-// This must be called on IO thread.
-CONTENT_EXPORT service_manager::InterfaceProvider* GetGpuRemoteInterfaces();
+CONTENT_EXPORT void BindInterfaceInGpuProcess(
+ const std::string& interface_name,
+ mojo::ScopedMessagePipeHandle interface_pipe);
+
+// Bind to an interface exposed by the GPU process.
+template <typename Interface>
+void BindInterfaceInGpuProcess(mojo::InterfaceRequest<Interface> request) {
+ BindInterfaceInGpuProcess(Interface::Name_,
+ std::move(request.PassMessagePipe()));
+}
} // namespace content
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/gpu_service_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698