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 | |
piman
2016/06/16 00:27:09
Please return a std::unique_ptr<VpnServiceProxy> t
adrian.belgun
2016/06/16 12:05:28
Done.
| |
592 // valid to return nullptr. | |
593 virtual VpnServiceProxy* GetVpnServiceProxy(BrowserContext* browser_context); | |
594 | |
590 // Returns an implementation of a file selecition policy. Can return nullptr. | 595 // Returns an implementation of a file selecition policy. Can return nullptr. |
591 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( | 596 virtual ui::SelectFilePolicy* CreateSelectFilePolicy( |
592 WebContents* web_contents); | 597 WebContents* web_contents); |
593 | 598 |
594 // Returns additional allowed scheme set which can access files in | 599 // Returns additional allowed scheme set which can access files in |
595 // FileSystem API. | 600 // FileSystem API. |
596 virtual void GetAdditionalAllowedSchemesForFileSystem( | 601 virtual void GetAdditionalAllowedSchemesForFileSystem( |
597 std::vector<std::string>* additional_schemes) {} | 602 std::vector<std::string>* additional_schemes) {} |
598 | 603 |
599 // |schemes| is a return value parameter that gets a whitelist of schemes that | 604 // |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 | 783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
779 // implementation. Return nullptr to disable external surface video. | 784 // implementation. Return nullptr to disable external surface video. |
780 virtual ExternalVideoSurfaceContainer* | 785 virtual ExternalVideoSurfaceContainer* |
781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
782 #endif | 787 #endif |
783 }; | 788 }; |
784 | 789 |
785 } // namespace content | 790 } // namespace content |
786 | 791 |
787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |