| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |