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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 const GURL& effective_url); | 183 const GURL& effective_url); |
184 | 184 |
185 // Returns a list additional WebUI schemes, if any. These additional schemes | 185 // Returns a list additional WebUI schemes, if any. These additional schemes |
186 // act as aliases to the chrome: scheme. The additional schemes may or may | 186 // act as aliases to the chrome: scheme. The additional schemes may or may |
187 // not serve specific WebUI pages depending on the particular URLDataSource | 187 // not serve specific WebUI pages depending on the particular URLDataSource |
188 // and its override of URLDataSource::ShouldServiceRequest. For all schemes | 188 // and its override of URLDataSource::ShouldServiceRequest. For all schemes |
189 // returned here, view-source is allowed. | 189 // returned here, view-source is allowed. |
190 virtual void GetAdditionalWebUISchemes( | 190 virtual void GetAdditionalWebUISchemes( |
191 std::vector<std::string>* additional_schemes) {} | 191 std::vector<std::string>* additional_schemes) {} |
192 | 192 |
| 193 // Returns a list of webUI hosts to ignore the storage partition check in |
| 194 // URLRequestChromeJob::CheckStoragePartitionMatches. |
| 195 virtual void GetWebUIHostsToIgnoreParititionCheck( |
| 196 std::vector<std::string>* hosts); |
| 197 |
193 // Creates the main net::URLRequestContextGetter. Should only be called once | 198 // Creates the main net::URLRequestContextGetter. Should only be called once |
194 // per ContentBrowserClient object. | 199 // per ContentBrowserClient object. |
195 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 200 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
196 virtual net::URLRequestContextGetter* CreateRequestContext( | 201 virtual net::URLRequestContextGetter* CreateRequestContext( |
197 BrowserContext* browser_context, | 202 BrowserContext* browser_context, |
198 ProtocolHandlerMap* protocol_handlers); | 203 ProtocolHandlerMap* protocol_handlers); |
199 | 204 |
200 // Creates the net::URLRequestContextGetter for a StoragePartition. Should | 205 // Creates the net::URLRequestContextGetter for a StoragePartition. Should |
201 // only be called once per partition_path per ContentBrowserClient object. | 206 // only be called once per partition_path per ContentBrowserClient object. |
202 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 207 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 content::BrowserContext* browser_context, | 622 content::BrowserContext* browser_context, |
618 const GURL& url); | 623 const GURL& url); |
619 | 624 |
620 // Returns true if dev channel APIs are available for plugins. | 625 // Returns true if dev channel APIs are available for plugins. |
621 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 626 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
622 }; | 627 }; |
623 | 628 |
624 } // namespace content | 629 } // namespace content |
625 | 630 |
626 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 631 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |