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

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2060943005: Enable content embedder register mojo services with RPH-specific information. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 // Returns true if dev channel APIs are available for plugins. 633 // Returns true if dev channel APIs are available for plugins.
634 virtual bool IsPluginAllowedToUseDevChannelAPIs( 634 virtual bool IsPluginAllowedToUseDevChannelAPIs(
635 BrowserContext* browser_context, 635 BrowserContext* browser_context,
636 const GURL& url); 636 const GURL& url);
637 637
638 // Allows the embedder to register MojoShellConnection::Listeners. 638 // Allows the embedder to register MojoShellConnection::Listeners.
639 virtual void AddMojoShellConnectionListeners() {} 639 virtual void AddMojoShellConnectionListeners() {}
640 640
641 // Allows to register browser Mojo services exposed through the 641 // Allows to register browser Mojo services exposed through the
642 // RenderProcessHost. 642 // RenderProcessHost.
643 virtual void RegisterRenderProcessMojoServices(ServiceRegistry* registry) {} 643 virtual void RegisterRenderProcessMojoServices(
644 ServiceRegistry* registry,
645 RenderProcessHost* render_process_host) {}
644 646
645 // Allows to register browser Mojo services exposed through the 647 // Allows to register browser Mojo services exposed through the
646 // FrameMojoShell. 648 // FrameMojoShell.
647 virtual void RegisterFrameMojoShellServices( 649 virtual void RegisterFrameMojoShellServices(
648 ServiceRegistry* registry, 650 ServiceRegistry* registry,
649 RenderFrameHost* render_frame_host) {} 651 RenderFrameHost* render_frame_host) {}
650 652
651 // Allows to register browser Mojo services exposed through the 653 // Allows to register browser Mojo services exposed through the
652 // RenderFrameHost. 654 // RenderFrameHost.
653 virtual void RegisterRenderFrameMojoServices( 655 virtual void RegisterRenderFrameMojoServices(
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 774 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
773 // implementation. Return nullptr to disable external surface video. 775 // implementation. Return nullptr to disable external surface video.
774 virtual ExternalVideoSurfaceContainer* 776 virtual ExternalVideoSurfaceContainer*
775 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 777 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
776 #endif 778 #endif
777 }; 779 };
778 780
779 } // namespace content 781 } // namespace content
780 782
781 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 783 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698