| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 class RenderFrameHost; | 100 class RenderFrameHost; |
| 101 class RenderProcessHost; | 101 class RenderProcessHost; |
| 102 class RenderViewHost; | 102 class RenderViewHost; |
| 103 class ResourceContext; | 103 class ResourceContext; |
| 104 class ServiceRegistry; | 104 class ServiceRegistry; |
| 105 class SiteInstance; | 105 class SiteInstance; |
| 106 class SpeechRecognitionManagerDelegate; | 106 class SpeechRecognitionManagerDelegate; |
| 107 class WebContents; | 107 class WebContents; |
| 108 class WebContentsViewDelegate; | 108 class WebContentsViewDelegate; |
| 109 struct MainFunctionParams; | 109 struct MainFunctionParams; |
| 110 struct OpenURLParams; |
| 110 struct Referrer; | 111 struct Referrer; |
| 111 struct WebPreferences; | 112 struct WebPreferences; |
| 112 | 113 |
| 113 // A mapping from the scheme name to the protocol handler that services its | 114 // A mapping from the scheme name to the protocol handler that services its |
| 114 // content. | 115 // content. |
| 115 typedef std::map< | 116 typedef std::map< |
| 116 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> > | 117 std::string, linked_ptr<net::URLRequestJobFactory::ProtocolHandler> > |
| 117 ProtocolHandlerMap; | 118 ProtocolHandlerMap; |
| 118 | 119 |
| 119 // A scoped vector of protocol interceptors. | 120 // A scoped vector of protocol interceptors. |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 // particular NavigatorConnectContext. | 596 // particular NavigatorConnectContext. |
| 596 virtual void GetAdditionalNavigatorConnectServices( | 597 virtual void GetAdditionalNavigatorConnectServices( |
| 597 const scoped_refptr<NavigatorConnectContext>& context) {} | 598 const scoped_refptr<NavigatorConnectContext>& context) {} |
| 598 | 599 |
| 599 // Allows to override the visibility state of a RenderFrameHost. | 600 // Allows to override the visibility state of a RenderFrameHost. |
| 600 // |visibility_state| should not be null. It will only be set if needed. | 601 // |visibility_state| should not be null. It will only be set if needed. |
| 601 virtual void OverridePageVisibilityState( | 602 virtual void OverridePageVisibilityState( |
| 602 RenderFrameHost* render_frame_host, | 603 RenderFrameHost* render_frame_host, |
| 603 blink::WebPageVisibilityState* visibility_state) {} | 604 blink::WebPageVisibilityState* visibility_state) {} |
| 604 | 605 |
| 606 // Allows programmatic opening of a new tab/window without going through |
| 607 // another WebContents. For example, from a Worker. |
| 608 virtual WebContents* OpenURL(BrowserContext* browser_context, |
| 609 const OpenURLParams& params); |
| 610 |
| 605 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 611 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 606 // Populates |mappings| with all files that need to be mapped before launching | 612 // Populates |mappings| with all files that need to be mapped before launching |
| 607 // a child process. | 613 // a child process. |
| 608 virtual void GetAdditionalMappedFilesForChildProcess( | 614 virtual void GetAdditionalMappedFilesForChildProcess( |
| 609 const base::CommandLine& command_line, | 615 const base::CommandLine& command_line, |
| 610 int child_process_id, | 616 int child_process_id, |
| 611 FileDescriptorInfo* mappings) {} | 617 FileDescriptorInfo* mappings) {} |
| 612 #endif | 618 #endif |
| 613 | 619 |
| 614 #if defined(OS_WIN) | 620 #if defined(OS_WIN) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 626 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 632 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 627 // implementation. Return nullptr to disable external surface video. | 633 // implementation. Return nullptr to disable external surface video. |
| 628 virtual ExternalVideoSurfaceContainer* | 634 virtual ExternalVideoSurfaceContainer* |
| 629 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 635 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 630 #endif | 636 #endif |
| 631 }; | 637 }; |
| 632 | 638 |
| 633 } // namespace content | 639 } // namespace content |
| 634 | 640 |
| 635 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 641 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |