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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 182 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
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. | 188 // and its override of URLDataSource::ShouldServiceRequest. |
189 virtual void GetAdditionalWebUISchemes( | 189 virtual void GetAdditionalWebUISchemes( |
190 std::vector<std::string>* additional_schemes) {} | 190 std::vector<std::string>* additional_schemes) {} |
191 | 191 |
| 192 // Returns a list of additional schemes where view-source should be allowed, |
| 193 // if any. |
| 194 virtual void GetAdditionalSchemesForViewSource( |
| 195 std::vector<std::string>* additional_schemes) {} |
| 196 |
192 // Creates the main net::URLRequestContextGetter. Should only be called once | 197 // Creates the main net::URLRequestContextGetter. Should only be called once |
193 // per ContentBrowserClient object. | 198 // per ContentBrowserClient object. |
194 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 199 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
195 virtual net::URLRequestContextGetter* CreateRequestContext( | 200 virtual net::URLRequestContextGetter* CreateRequestContext( |
196 BrowserContext* browser_context, | 201 BrowserContext* browser_context, |
197 ProtocolHandlerMap* protocol_handlers); | 202 ProtocolHandlerMap* protocol_handlers); |
198 | 203 |
199 // Creates the net::URLRequestContextGetter for a StoragePartition. Should | 204 // Creates the net::URLRequestContextGetter for a StoragePartition. Should |
200 // only be called once per partition_path per ContentBrowserClient object. | 205 // only be called once per partition_path per ContentBrowserClient object. |
201 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. | 206 // TODO(ajwong): Remove once http://crbug.com/159193 is resolved. |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 content::BrowserContext* browser_context, | 613 content::BrowserContext* browser_context, |
609 const GURL& url); | 614 const GURL& url); |
610 | 615 |
611 // Returns true if dev channel APIs are available for plugins. | 616 // Returns true if dev channel APIs are available for plugins. |
612 virtual bool IsPluginAllowedToUseDevChannelAPIs(); | 617 virtual bool IsPluginAllowedToUseDevChannelAPIs(); |
613 }; | 618 }; |
614 | 619 |
615 } // namespace content | 620 } // namespace content |
616 | 621 |
617 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 622 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |