| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 } | 46 } |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 struct WebWindowFeatures; | 49 struct WebWindowFeatures; |
| 50 } | 50 } |
| 51 | 51 |
| 52 namespace gfx { | 52 namespace gfx { |
| 53 class ImageSkia; | 53 class ImageSkia; |
| 54 } | 54 } |
| 55 | 55 |
| 56 namespace mojo { |
| 57 class ApplicationDelegate; |
| 58 } |
| 59 |
| 56 namespace net { | 60 namespace net { |
| 57 class CookieOptions; | 61 class CookieOptions; |
| 58 class NetLog; | 62 class NetLog; |
| 59 class SSLCertRequestInfo; | 63 class SSLCertRequestInfo; |
| 60 class SSLInfo; | 64 class SSLInfo; |
| 61 class URLRequest; | 65 class URLRequest; |
| 62 class URLRequestContext; | 66 class URLRequestContext; |
| 63 class URLRequestContextGetter; | 67 class URLRequestContextGetter; |
| 64 class X509Certificate; | 68 class X509Certificate; |
| 65 } | 69 } |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 // Allows to override browser Mojo services exposed through the | 575 // Allows to override browser Mojo services exposed through the |
| 572 // RenderProcessHost. | 576 // RenderProcessHost. |
| 573 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} | 577 virtual void OverrideRenderProcessMojoServices(ServiceRegistry* registry) {} |
| 574 | 578 |
| 575 // Allows to override browser Mojo services exposed through the | 579 // Allows to override browser Mojo services exposed through the |
| 576 // RenderFrameHost. | 580 // RenderFrameHost. |
| 577 virtual void OverrideRenderFrameMojoServices( | 581 virtual void OverrideRenderFrameMojoServices( |
| 578 ServiceRegistry* registry, | 582 ServiceRegistry* registry, |
| 579 RenderFrameHost* render_frame_host) {} | 583 RenderFrameHost* render_frame_host) {} |
| 580 | 584 |
| 585 using StaticMojoApplicationMap = |
| 586 std::map<GURL, base::Callback<scoped_ptr<mojo::ApplicationDelegate>()>>; |
| 587 |
| 588 // Registers in-process Mojo application loaders with the browser's global |
| 589 // Mojo shell. |
| 590 virtual void RegisterMojoApplications(StaticMojoApplicationMap* apps) {} |
| 591 |
| 581 // Registers additional navigator.connect service factories available in a | 592 // Registers additional navigator.connect service factories available in a |
| 582 // particular NavigatorConnectContext. | 593 // particular NavigatorConnectContext. |
| 583 virtual void GetAdditionalNavigatorConnectServices( | 594 virtual void GetAdditionalNavigatorConnectServices( |
| 584 const scoped_refptr<NavigatorConnectContext>& context) {} | 595 const scoped_refptr<NavigatorConnectContext>& context) {} |
| 585 | 596 |
| 586 // Allows to override the visibility state of a RenderFrameHost. | 597 // Allows to override the visibility state of a RenderFrameHost. |
| 587 // |visibility_state| should not be null. It will only be set if needed. | 598 // |visibility_state| should not be null. It will only be set if needed. |
| 588 virtual void OverridePageVisibilityState( | 599 virtual void OverridePageVisibilityState( |
| 589 RenderFrameHost* render_frame_host, | 600 RenderFrameHost* render_frame_host, |
| 590 blink::WebPageVisibilityState* visibility_state) {} | 601 blink::WebPageVisibilityState* visibility_state) {} |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 639 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 629 // implementation. Return nullptr to disable external surface video. | 640 // implementation. Return nullptr to disable external surface video. |
| 630 virtual ExternalVideoSurfaceContainer* | 641 virtual ExternalVideoSurfaceContainer* |
| 631 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 642 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 632 #endif | 643 #endif |
| 633 }; | 644 }; |
| 634 | 645 |
| 635 } // namespace content | 646 } // namespace content |
| 636 | 647 |
| 637 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 648 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |