| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 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 { | |
| 64 class InterfaceRegistry; | |
| 65 class Service; | |
| 66 } | |
| 67 | |
| 68 namespace net { | 63 namespace net { |
| 69 class CookieOptions; | 64 class CookieOptions; |
| 70 class NetLog; | 65 class NetLog; |
| 71 class SSLCertRequestInfo; | 66 class SSLCertRequestInfo; |
| 72 class SSLInfo; | 67 class SSLInfo; |
| 73 class URLRequest; | 68 class URLRequest; |
| 74 class URLRequestContext; | 69 class URLRequestContext; |
| 75 class URLRequestContextGetter; | 70 class URLRequestContextGetter; |
| 76 class X509Certificate; | 71 class X509Certificate; |
| 77 } | 72 } |
| 78 | 73 |
| 79 namespace sandbox { | 74 namespace sandbox { |
| 80 class TargetPolicy; | 75 class TargetPolicy; |
| 81 } | 76 } |
| 82 | 77 |
| 78 namespace shell { |
| 79 class Connection; |
| 80 class InterfaceRegistry; |
| 81 class Service; |
| 82 } |
| 83 |
| 83 namespace ui { | 84 namespace ui { |
| 84 class SelectFilePolicy; | 85 class SelectFilePolicy; |
| 85 } | 86 } |
| 86 | 87 |
| 87 namespace url { | 88 namespace url { |
| 88 class Origin; | 89 class Origin; |
| 89 } | 90 } |
| 90 | 91 |
| 91 namespace storage { | 92 namespace storage { |
| 92 class ExternalMountPoints; | 93 class ExternalMountPoints; |
| (...skipping 546 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 interfaces exposed through the | 650 // Allows the client to expose interfaces to the renderer at the remote end |
| 650 // RenderProcessHost. | 651 // of |connection|. Called on the IO thread. |
| 651 virtual void ExposeInterfacesToRenderer( | 652 virtual void ExposeInterfacesToRenderer(shell::Connection* connection) {} |
| 652 shell::InterfaceRegistry* registry, | |
| 653 RenderProcessHost* render_process_host) {} | |
| 654 | 653 |
| 655 // Called when RenderFrameHostImpl connects to the Media service. Expose | 654 // Called when RenderFrameHostImpl connects to the Media service. Expose |
| 656 // interfaces to the service using |registry|. | 655 // interfaces to the service using |registry|. |
| 657 virtual void ExposeInterfacesToMediaService( | 656 virtual void ExposeInterfacesToMediaService( |
| 658 shell::InterfaceRegistry* registry, | 657 shell::InterfaceRegistry* registry, |
| 659 RenderFrameHost* render_frame_host) {} | 658 RenderFrameHost* render_frame_host) {} |
| 660 | 659 |
| 661 // Allows to register browser Mojo interfaces exposed through the | 660 // Allows to register browser Mojo interfaces exposed through the |
| 662 // RenderFrameHost. | 661 // RenderFrameHost. Called on the UI thread. |
| 663 virtual void RegisterRenderFrameMojoInterfaces( | 662 virtual void RegisterRenderFrameMojoInterfaces( |
| 664 shell::InterfaceRegistry* registry, | 663 shell::InterfaceRegistry* registry, |
| 665 RenderFrameHost* render_frame_host) {} | 664 RenderFrameHost* render_frame_host) {} |
| 666 | 665 |
| 667 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; | 666 using StaticMojoApplicationMap = std::map<std::string, MojoApplicationInfo>; |
| 668 | 667 |
| 669 // Registers Mojo applications to be loaded in the browser process by the | 668 // Registers Mojo applications to be loaded in the browser process by the |
| 670 // browser's global Mojo shell. | 669 // browser's global Mojo shell. |
| 671 virtual void RegisterInProcessMojoApplications( | 670 virtual void RegisterInProcessMojoApplications( |
| 672 StaticMojoApplicationMap* apps) {} | 671 StaticMojoApplicationMap* apps) {} |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 777 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 779 // implementation. Return nullptr to disable external surface video. | 778 // implementation. Return nullptr to disable external surface video. |
| 780 virtual ExternalVideoSurfaceContainer* | 779 virtual ExternalVideoSurfaceContainer* |
| 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 780 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 782 #endif | 781 #endif |
| 783 }; | 782 }; |
| 784 | 783 |
| 785 } // namespace content | 784 } // namespace content |
| 786 | 785 |
| 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 786 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |