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

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

Issue 2183703005: Renderers should obtain browser InterfaceProvider by connecting to browser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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/public/browser/browser_context.h ('k') | content/public/common/mojo_shell_connection.h » ('j') | 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 virtual bool IsPluginAllowedToUseDevChannelAPIs( 637 virtual bool IsPluginAllowedToUseDevChannelAPIs(
638 BrowserContext* browser_context, 638 BrowserContext* browser_context,
639 const GURL& url); 639 const GURL& url);
640 640
641 // Generate a Shell user-id for the supplied browser context. Defaults to 641 // Generate a Shell user-id for the supplied browser context. Defaults to
642 // returning a random GUID. 642 // returning a random GUID.
643 virtual std::string GetShellUserIdForBrowserContext( 643 virtual std::string GetShellUserIdForBrowserContext(
644 BrowserContext* browser_context); 644 BrowserContext* browser_context);
645 645
646 // Allows to register browser Mojo interfaces exposed through the 646 // Allows to register browser Mojo interfaces exposed through the
647 // RenderProcessHost. 647 // RenderProcessHost. Note that interface factory callbacks added to
648 // |registry| will by default be run immediately on the IO thread, unless a
649 // task runner is provided.
648 virtual void ExposeInterfacesToRenderer( 650 virtual void ExposeInterfacesToRenderer(
649 shell::InterfaceRegistry* registry, 651 shell::InterfaceRegistry* registry,
650 RenderProcessHost* render_process_host) {} 652 RenderProcessHost* render_process_host) {}
651 653
652 // Called when RenderFrameHostImpl connects to the Media service. Expose 654 // Called when RenderFrameHostImpl connects to the Media service. Expose
653 // interfaces to the service using |registry|. 655 // interfaces to the service using |registry|.
654 virtual void ExposeInterfacesToMediaService( 656 virtual void ExposeInterfacesToMediaService(
655 shell::InterfaceRegistry* registry, 657 shell::InterfaceRegistry* registry,
656 RenderFrameHost* render_frame_host) {} 658 RenderFrameHost* render_frame_host) {}
657 659
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
776 // implementation. Return nullptr to disable external surface video. 778 // implementation. Return nullptr to disable external surface video.
777 virtual ExternalVideoSurfaceContainer* 779 virtual ExternalVideoSurfaceContainer*
778 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
779 #endif 781 #endif
780 }; 782 };
781 783
782 } // namespace content 784 } // namespace content
783 785
784 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_context.h ('k') | content/public/common/mojo_shell_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698