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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 // particular NavigatorConnectContext. | 660 // particular NavigatorConnectContext. |
661 virtual void GetAdditionalNavigatorConnectServices( | 661 virtual void GetAdditionalNavigatorConnectServices( |
662 const scoped_refptr<NavigatorConnectContext>& context) {} | 662 const scoped_refptr<NavigatorConnectContext>& context) {} |
663 | 663 |
664 // Allows to override the visibility state of a RenderFrameHost. | 664 // Allows to override the visibility state of a RenderFrameHost. |
665 // |visibility_state| should not be null. It will only be set if needed. | 665 // |visibility_state| should not be null. It will only be set if needed. |
666 virtual void OverridePageVisibilityState( | 666 virtual void OverridePageVisibilityState( |
667 RenderFrameHost* render_frame_host, | 667 RenderFrameHost* render_frame_host, |
668 blink::WebPageVisibilityState* visibility_state) {} | 668 blink::WebPageVisibilityState* visibility_state) {} |
669 | 669 |
| 670 // TODO(estark): remove once we decide whether to ship cookie |
| 671 // prefixes. https://crbug.com/541511 |
| 672 virtual bool ExperimentalCookieFeaturesEnabled(); |
| 673 |
670 // Allows an embedder to provide its own PresentationServiceDelegate | 674 // Allows an embedder to provide its own PresentationServiceDelegate |
671 // implementation. Returns nullptr if unavailable. | 675 // implementation. Returns nullptr if unavailable. |
672 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( | 676 virtual PresentationServiceDelegate* GetPresentationServiceDelegate( |
673 WebContents* web_contents); | 677 WebContents* web_contents); |
674 | 678 |
675 // Allows programmatic opening of a new tab/window without going through | 679 // Allows programmatic opening of a new tab/window without going through |
676 // another WebContents. For example, from a Worker. |callback| will be | 680 // another WebContents. For example, from a Worker. |callback| will be |
677 // invoked with the appropriate WebContents* when available. | 681 // invoked with the appropriate WebContents* when available. |
678 virtual void OpenURL(BrowserContext* browser_context, | 682 virtual void OpenURL(BrowserContext* browser_context, |
679 const OpenURLParams& params, | 683 const OpenURLParams& params, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 730 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
727 // implementation. Return nullptr to disable external surface video. | 731 // implementation. Return nullptr to disable external surface video. |
728 virtual ExternalVideoSurfaceContainer* | 732 virtual ExternalVideoSurfaceContainer* |
729 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 733 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
730 #endif | 734 #endif |
731 }; | 735 }; |
732 | 736 |
733 } // namespace content | 737 } // namespace content |
734 | 738 |
735 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 739 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |