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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 | 144 |
145 // Returns whether all instances of the specified effective URL should be | 145 // Returns whether all instances of the specified effective URL should be |
146 // rendered by the same process, rather than using process-per-site-instance. | 146 // rendered by the same process, rather than using process-per-site-instance. |
147 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 147 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
148 const GURL& effective_url); | 148 const GURL& effective_url); |
149 | 149 |
150 // Returns a list additional WebUI schemes, if any. These additional schemes | 150 // Returns a list additional WebUI schemes, if any. These additional schemes |
151 // act as aliases to the chrome: scheme. The additional schemes may or may | 151 // act as aliases to the chrome: scheme. The additional schemes may or may |
152 // not serve specific WebUI pages depending on the particular URLDataSource | 152 // not serve specific WebUI pages depending on the particular URLDataSource |
153 // and its override of URLDataSource::ShouldServiceRequest. | 153 // and its override of URLDataSource::ShouldServiceRequest. |
154 virtual std::vector<std::string> GetAdditionalWebUISchemes(); | 154 virtual void GetAdditionalWebUISchemes( |
| 155 std::vector<std::string>* additional_schemes) {} |
155 | 156 |
156 // Creates the main net::URLRequestContextGetter. Should only be called once | 157 // Creates the main net::URLRequestContextGetter. Should only be called once |
157 // per ContentBrowserClient object. | 158 // per ContentBrowserClient object. |
158 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 159 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
159 virtual net::URLRequestContextGetter* CreateRequestContext( | 160 virtual net::URLRequestContextGetter* CreateRequestContext( |
160 BrowserContext* browser_context, | 161 BrowserContext* browser_context, |
161 ProtocolHandlerMap* protocol_handlers); | 162 ProtocolHandlerMap* protocol_handlers); |
162 | 163 |
163 // Creates the net::URLRequestContextGetter for a StoragePartition. Should | 164 // Creates the net::URLRequestContextGetter for a StoragePartition. Should |
164 // only be called once per partition_path per ContentBrowserClient object. | 165 // only be called once per partition_path per ContentBrowserClient object. |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 // This is called on a worker thread. | 521 // This is called on a worker thread. |
521 virtual | 522 virtual |
522 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 523 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
523 const GURL& url); | 524 const GURL& url); |
524 #endif | 525 #endif |
525 }; | 526 }; |
526 | 527 |
527 } // namespace content | 528 } // namespace content |
528 | 529 |
529 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 530 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |