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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const GURL& effective_url); | 188 const GURL& effective_url); |
189 | 189 |
190 // Returns a list additional WebUI schemes, if any. These additional schemes | 190 // Returns a list additional WebUI schemes, if any. These additional schemes |
191 // act as aliases to the chrome: scheme. The additional schemes may or may | 191 // act as aliases to the chrome: scheme. The additional schemes may or may |
192 // not serve specific WebUI pages depending on the particular URLDataSource | 192 // not serve specific WebUI pages depending on the particular URLDataSource |
193 // and its override of URLDataSource::ShouldServiceRequest. For all schemes | 193 // and its override of URLDataSource::ShouldServiceRequest. For all schemes |
194 // returned here, view-source is allowed. | 194 // returned here, view-source is allowed. |
195 virtual void GetAdditionalWebUISchemes( | 195 virtual void GetAdditionalWebUISchemes( |
196 std::vector<std::string>* additional_schemes) {} | 196 std::vector<std::string>* additional_schemes) {} |
197 | 197 |
| 198 // Returns a list of webUI hosts to ignore the storage partition check in |
| 199 // URLRequestChromeJob::CheckStoragePartitionMatches. |
| 200 virtual void GetAdditionalWebUIHostsToIgnoreParititionCheck( |
| 201 std::vector<std::string>* hosts) {} |
| 202 |
198 // Creates the main net::URLRequestContextGetter. Should only be called once | 203 // Creates the main net::URLRequestContextGetter. Should only be called once |
199 // per ContentBrowserClient object. | 204 // per ContentBrowserClient object. |
200 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 205 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
201 virtual net::URLRequestContextGetter* CreateRequestContext( | 206 virtual net::URLRequestContextGetter* CreateRequestContext( |
202 BrowserContext* browser_context, | 207 BrowserContext* browser_context, |
203 ProtocolHandlerMap* protocol_handlers, | 208 ProtocolHandlerMap* protocol_handlers, |
204 ProtocolHandlerScopedVector protocol_interceptors); | 209 ProtocolHandlerScopedVector protocol_interceptors); |
205 | 210 |
206 // Creates the net::URLRequestContextGetter for a StoragePartition. Should | 211 // Creates the net::URLRequestContextGetter for a StoragePartition. Should |
207 // only be called once per partition_path per ContentBrowserClient object. | 212 // only be called once per partition_path per ContentBrowserClient object. |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 // Returns a special cookie store to use for a given render process, or NULL | 635 // Returns a special cookie store to use for a given render process, or NULL |
631 // if the default cookie store should be used | 636 // if the default cookie store should be used |
632 // This is called on the IO thread. | 637 // This is called on the IO thread. |
633 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( | 638 virtual net::CookieStore* OverrideCookieStoreForRenderProcess( |
634 int render_process_id_); | 639 int render_process_id_); |
635 }; | 640 }; |
636 | 641 |
637 } // namespace content | 642 } // namespace content |
638 | 643 |
639 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 644 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |