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

Unified Diff: content/browser/gpu/gpu_process_host_ui_shim.h

Issue 2688193002: Mojo framework for AndroidOverlay. (Closed)
Patch Set: moved UI thread mojo init to Gpu...UIShim Created 3 years, 10 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/browser/gpu/gpu_process_host_ui_shim.h
diff --git a/content/browser/gpu/gpu_process_host_ui_shim.h b/content/browser/gpu/gpu_process_host_ui_shim.h
index 7ac670434f304c1dbeba9e02dc11d536142150ad..4f35ec62724351fbb71fb136bdf0ff9852eda181 100644
--- a/content/browser/gpu/gpu_process_host_ui_shim.h
+++ b/content/browser/gpu/gpu_process_host_ui_shim.h
@@ -35,6 +35,10 @@ namespace gpu {
struct VideoMemoryUsageStats;
}
+namespace service_manager {
+class InterfaceRegistry;
+}
+
namespace content {
void RouteToGpuProcessHostUIShimTask(int host_id, const IPC::Message& msg);
@@ -79,6 +83,12 @@ class GpuProcessHostUIShim : public IPC::Listener,
CONTENT_EXPORT void SimulateJavaCrash();
#endif
+#if defined(OS_ANDROID)
+ // Register Mojo interfaces that must be bound on the UI thread.
+ static void RegisterUIThreadMojoInterfaces(
+ service_manager::InterfaceRegistry* registry);
+#endif
+
private:
explicit GpuProcessHostUIShim(int host_id);
~GpuProcessHostUIShim() override;

Powered by Google App Engine
This is Rietveld 408576698