| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 namespace gfx { | 55 namespace gfx { |
| 56 class ImageSkia; | 56 class ImageSkia; |
| 57 } | 57 } |
| 58 | 58 |
| 59 namespace media { | 59 namespace media { |
| 60 class CdmFactory; | 60 class CdmFactory; |
| 61 } | 61 } |
| 62 | 62 |
| 63 namespace shell { | 63 namespace shell { |
| 64 class InterfaceRegistry; |
| 64 class ShellClient; | 65 class ShellClient; |
| 65 } | 66 } |
| 66 | 67 |
| 67 namespace net { | 68 namespace net { |
| 68 class CookieOptions; | 69 class CookieOptions; |
| 69 class NetLog; | 70 class NetLog; |
| 70 class SSLCertRequestInfo; | 71 class SSLCertRequestInfo; |
| 71 class SSLInfo; | 72 class SSLInfo; |
| 72 class URLRequest; | 73 class URLRequest; |
| 73 class URLRequestContext; | 74 class URLRequestContext; |
| (...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 // Returns true if dev channel APIs are available for plugins. | 640 // Returns true if dev channel APIs are available for plugins. |
| 640 virtual bool IsPluginAllowedToUseDevChannelAPIs( | 641 virtual bool IsPluginAllowedToUseDevChannelAPIs( |
| 641 BrowserContext* browser_context, | 642 BrowserContext* browser_context, |
| 642 const GURL& url); | 643 const GURL& url); |
| 643 | 644 |
| 644 // Generate a Shell user-id for the supplied browser context. Defaults to | 645 // Generate a Shell user-id for the supplied browser context. Defaults to |
| 645 // returning a random GUID. | 646 // returning a random GUID. |
| 646 virtual std::string GetShellUserIdForBrowserContext( | 647 virtual std::string GetShellUserIdForBrowserContext( |
| 647 BrowserContext* browser_context); | 648 BrowserContext* browser_context); |
| 648 | 649 |
| 649 // Allows to register browser Mojo services exposed through the | 650 // Allows to register browser Mojo interfaces exposed through the |
| 650 // RenderProcessHost. | 651 // RenderProcessHost. |
| 651 virtual void RegisterRenderProcessMojoServices( | 652 virtual void RegisterRenderProcessMojoServices( |
| 652 ServiceRegistry* registry, | 653 ServiceRegistry* registry, |
| 653 RenderProcessHost* render_process_host) {} | 654 RenderProcessHost* render_process_host) {} |
| 654 | 655 |
| 655 // Allows to register browser Mojo services exposed through the | 656 // Allows to register browser Mojo interfaces exposed through the |
| 656 // FrameMojoShell. | 657 // FrameMojoShell. |
| 657 virtual void RegisterFrameMojoShellServices( | 658 virtual void RegisterFrameMojoShellInterfaces( |
| 658 ServiceRegistry* registry, | 659 shell::InterfaceRegistry* registry, |
| 659 RenderFrameHost* render_frame_host) {} | 660 RenderFrameHost* render_frame_host) {} |
| 660 | 661 |
| 661 // Allows to register browser Mojo services exposed through the | 662 // Allows to register browser Mojo interfaces exposed through the |
| 662 // RenderFrameHost. | 663 // RenderFrameHost. |
| 663 virtual void RegisterRenderFrameMojoServices( | 664 virtual void RegisterRenderFrameMojoInterfaces( |
| 664 ServiceRegistry* registry, | 665 shell::InterfaceRegistry* registry, |
| 665 RenderFrameHost* render_frame_host) {} | 666 RenderFrameHost* render_frame_host) {} |
| 666 | 667 |
| 667 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; | 668 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; |
| 668 | 669 |
| 669 // Registers Mojo applications to be loaded in the browser process by the | 670 // Registers Mojo applications to be loaded in the browser process by the |
| 670 // browser's global Mojo shell. | 671 // browser's global Mojo shell. |
| 671 virtual void RegisterInProcessMojoApplications( | 672 virtual void RegisterInProcessMojoApplications( |
| 672 StaticMojoApplicationMap* apps) {} | 673 StaticMojoApplicationMap* apps) {} |
| 673 | 674 |
| 674 using OutOfProcessMojoApplicationMap = std::map<std::string, base::string16>; | 675 using OutOfProcessMojoApplicationMap = std::map<std::string, base::string16>; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 779 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 779 // implementation. Return nullptr to disable external surface video. | 780 // implementation. Return nullptr to disable external surface video. |
| 780 virtual ExternalVideoSurfaceContainer* | 781 virtual ExternalVideoSurfaceContainer* |
| 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 782 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 782 #endif | 783 #endif |
| 783 }; | 784 }; |
| 784 | 785 |
| 785 } // namespace content | 786 } // namespace content |
| 786 | 787 |
| 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 788 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |