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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 class PresentationServiceDelegate; | 113 class PresentationServiceDelegate; |
114 class QuotaPermissionContext; | 114 class QuotaPermissionContext; |
115 class RenderFrameHost; | 115 class RenderFrameHost; |
116 class RenderProcessHost; | 116 class RenderProcessHost; |
117 class RenderViewHost; | 117 class RenderViewHost; |
118 class ResourceContext; | 118 class ResourceContext; |
119 class ServiceRegistry; | 119 class ServiceRegistry; |
120 class SiteInstance; | 120 class SiteInstance; |
121 class SpeechRecognitionManagerDelegate; | 121 class SpeechRecognitionManagerDelegate; |
122 class TracingDelegate; | 122 class TracingDelegate; |
| 123 class VpnServiceProxy; |
123 class WebContents; | 124 class WebContents; |
124 class WebContentsViewDelegate; | 125 class WebContentsViewDelegate; |
125 struct MainFunctionParams; | 126 struct MainFunctionParams; |
126 struct OpenURLParams; | 127 struct OpenURLParams; |
127 struct Referrer; | 128 struct Referrer; |
128 struct WebPreferences; | 129 struct WebPreferences; |
129 | 130 |
130 // Embedder API (or SPI) for participating in browser logic, to be implemented | 131 // Embedder API (or SPI) for participating in browser logic, to be implemented |
131 // by the client of the content browser. See ChromeContentBrowserClient for the | 132 // by the client of the content browser. See ChromeContentBrowserClient for the |
132 // principal implementation. The methods are assumed to be called on the UI | 133 // principal implementation. The methods are assumed to be called on the UI |
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, | 581 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, |
581 const GURL& url, | 582 const GURL& url, |
582 bool private_api, | 583 bool private_api, |
583 const SocketPermissionRequest* params); | 584 const SocketPermissionRequest* params); |
584 | 585 |
585 // Returns true if the "vpnProvider" permission is allowed from the given | 586 // Returns true if the "vpnProvider" permission is allowed from the given |
586 // |browser_context| and |url|. | 587 // |browser_context| and |url|. |
587 virtual bool IsPepperVpnProviderAPIAllowed(BrowserContext* browser_context, | 588 virtual bool IsPepperVpnProviderAPIAllowed(BrowserContext* browser_context, |
588 const GURL& url); | 589 const GURL& url); |
589 | 590 |
| 591 // Creates a new VpnServiceProxy. The caller owns the returned value. It's |
| 592 // valid to return nullptr. |
| 593 virtual std::unique_ptr<VpnServiceProxy> GetVpnServiceProxy( |
| 594 BrowserContext* browser_context); |
| 595 |
590 // Returns an implementation of a file selecition policy. Can return nullptr. | 596 // Returns an implementation of a file selecition policy. Can return nullptr. |
591 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 597 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
592 WebContents* web_contents); | 598 WebContents* web_contents); |
593 | 599 |
594 // Returns additional allowed scheme set which can access files in | 600 // Returns additional allowed scheme set which can access files in |
595 // FileSystem API. | 601 // FileSystem API. |
596 virtual void GetAdditionalAllowedSchemesForFileSystem( | 602 virtual void GetAdditionalAllowedSchemesForFileSystem( |
597 std::vector<std::string>* additional_schemes) {} | 603 std::vector<std::string>* additional_schemes) {} |
598 | 604 |
599 // |schemes| is a return value parameter that gets a whitelist of schemes that | 605 // |schemes| is a return value parameter that gets a whitelist of schemes that |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 784 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
779 // implementation. Return nullptr to disable external surface video. | 785 // implementation. Return nullptr to disable external surface video. |
780 virtual ExternalVideoSurfaceContainer* | 786 virtual ExternalVideoSurfaceContainer* |
781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 787 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
782 #endif | 788 #endif |
783 }; | 789 }; |
784 | 790 |
785 } // namespace content | 791 } // namespace content |
786 | 792 |
787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 793 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |