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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 28 matching lines...) Expand all Loading... |
39 namespace crypto { | 39 namespace crypto { |
40 class CryptoModuleBlockingPasswordDelegate; | 40 class CryptoModuleBlockingPasswordDelegate; |
41 } | 41 } |
42 | 42 |
43 namespace gfx { | 43 namespace gfx { |
44 class ImageSkia; | 44 class ImageSkia; |
45 } | 45 } |
46 | 46 |
47 namespace net { | 47 namespace net { |
48 class CookieOptions; | 48 class CookieOptions; |
| 49 class CookieStore; |
49 class HttpNetworkSession; | 50 class HttpNetworkSession; |
50 class NetLog; | 51 class NetLog; |
51 class SSLCertRequestInfo; | 52 class SSLCertRequestInfo; |
52 class SSLInfo; | 53 class SSLInfo; |
53 class URLRequest; | 54 class URLRequest; |
54 class URLRequestContext; | |
55 class URLRequestContextGetter; | 55 class URLRequestContextGetter; |
56 class X509Certificate; | 56 class X509Certificate; |
57 } | 57 } |
58 | 58 |
59 namespace ui { | 59 namespace ui { |
60 class SelectFilePolicy; | 60 class SelectFilePolicy; |
61 } | 61 } |
62 | 62 |
63 namespace content { | 63 namespace content { |
64 | 64 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 | 278 |
279 // Allow the embedder to control if access to IndexedDB by a shared worker | 279 // Allow the embedder to control if access to IndexedDB by a shared worker |
280 // is allowed. | 280 // is allowed. |
281 // This is called on the IO thread. | 281 // This is called on the IO thread. |
282 virtual bool AllowWorkerIndexedDB( | 282 virtual bool AllowWorkerIndexedDB( |
283 const GURL& url, | 283 const GURL& url, |
284 const string16& name, | 284 const string16& name, |
285 ResourceContext* context, | 285 ResourceContext* context, |
286 const std::vector<std::pair<int, int> >& render_views); | 286 const std::vector<std::pair<int, int> >& render_views); |
287 | 287 |
288 // Allow the embedder to override the request context based on the URL for | 288 // Allow the embedder to override the cookie store based on the URL. |
289 // certain operations, like cookie access. Returns NULL to indicate the | 289 // Returns NULL to indicate the regular cookie store should be used. |
290 // regular request context should be used. | |
291 // This is called on the IO thread. | 290 // This is called on the IO thread. |
292 virtual net::URLRequestContext* OverrideRequestContextForURL( | 291 virtual net::CookieStore* OverrideCookieStoreForURL( |
293 const GURL& url, ResourceContext* context); | 292 const GURL& url, |
| 293 content::ResourceContext* context); |
294 | 294 |
295 // Allow the embedder to specify a string version of the storage partition | 295 // Allow the embedder to specify a string version of the storage partition |
296 // config with a site. | 296 // config with a site. |
297 virtual std::string GetStoragePartitionIdForSite( | 297 virtual std::string GetStoragePartitionIdForSite( |
298 content::BrowserContext* browser_context, | 298 content::BrowserContext* browser_context, |
299 const GURL& site); | 299 const GURL& site); |
300 | 300 |
301 // Allows the embedder to provide a validation check for |partition_id|s. | 301 // Allows the embedder to provide a validation check for |partition_id|s. |
302 // This domain of valid entries should match the range of outputs for | 302 // This domain of valid entries should match the range of outputs for |
303 // GetStoragePartitionIdForChildProcess(). | 303 // GetStoragePartitionIdForChildProcess(). |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 // This is called on a worker thread. | 511 // This is called on a worker thread. |
512 virtual | 512 virtual |
513 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 513 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
514 const GURL& url); | 514 const GURL& url); |
515 #endif | 515 #endif |
516 }; | 516 }; |
517 | 517 |
518 } // namespace content | 518 } // namespace content |
519 | 519 |
520 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 520 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |