Chromium Code Reviews| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 | 233 |
| 234 // Allow the embedder to control if access to IndexedDB by a shared worker | 234 // Allow the embedder to control if access to IndexedDB by a shared worker |
| 235 // is allowed. | 235 // is allowed. |
| 236 // This is called on the IO thread. | 236 // This is called on the IO thread. |
| 237 virtual bool AllowWorkerIndexedDB( | 237 virtual bool AllowWorkerIndexedDB( |
| 238 const GURL& url, | 238 const GURL& url, |
| 239 const string16& name, | 239 const string16& name, |
| 240 ResourceContext* context, | 240 ResourceContext* context, |
| 241 const std::vector<std::pair<int, int> >& render_views); | 241 const std::vector<std::pair<int, int> >& render_views); |
| 242 | 242 |
| 243 // Allows the embedder to override the request context based on the URL for | 243 // Allow the embedder to override the request context based on the URL for |
| 244 // certain operations, like cookie access. Returns NULL to indicate the | 244 // certain operations, like cookie access. Returns NULL to indicate the |
| 245 // regular request context should be used. | 245 // regular request context should be used. |
| 246 // This is called on the IO thread. | 246 // This is called on the IO thread. |
| 247 virtual net::URLRequestContext* OverrideRequestContextForURL( | 247 virtual net::URLRequestContext* OverrideRequestContextForURL( |
| 248 const GURL& url, ResourceContext* context); | 248 const GURL& url, ResourceContext* context); |
| 249 | 249 |
| 250 // Allow the embedder to specify which set of persistent state a child | |
|
Charlie Reis
2012/07/02 23:21:23
I feel like "which set of persistent state" is lea
awong
2012/07/09 20:37:43
I don't like adding information about how we imple
Charlie Reis
2012/07/10 21:37:48
That's sufficient. Thanks.
| |
| 251 // process should have access to. Child processes that have different | |
| 252 // storage partition identifiers will behave as if they belong to different | |
| 253 // browser processes. Returns the empty string for the regular storage | |
|
Charlie Reis
2012/07/02 23:21:23
browser processes -> web browsers
awong
2012/07/09 20:37:43
Done.
| |
| 254 // partition. | |
| 255 virtual std::string GetStoragePartitionForChildProcess( | |
| 256 content::BrowserContext* browser_context, | |
| 257 int child_process_id); | |
| 258 | |
| 250 // Create and return a new quota permission context. | 259 // Create and return a new quota permission context. |
| 251 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 260 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 252 | 261 |
| 253 // Open the given file in the desktop's default manner. | 262 // Open the given file in the desktop's default manner. |
| 254 virtual void OpenItem(const FilePath& path) {} | 263 virtual void OpenItem(const FilePath& path) {} |
| 255 | 264 |
| 256 // Show the given file in a file manager. If possible, select the file. | 265 // Show the given file in a file manager. If possible, select the file. |
| 257 virtual void ShowItemInFolder(const FilePath& path) {} | 266 virtual void ShowItemInFolder(const FilePath& path) {} |
| 258 | 267 |
| 259 // Informs the embedder that a certificate error has occured. If | 268 // Informs the embedder that a certificate error has occured. If |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 419 // This is called on a worker thread. | 428 // This is called on a worker thread. |
| 420 virtual | 429 virtual |
| 421 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 430 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 422 const GURL& url); | 431 const GURL& url); |
| 423 #endif | 432 #endif |
| 424 }; | 433 }; |
| 425 | 434 |
| 426 } // namespace content | 435 } // namespace content |
| 427 | 436 |
| 428 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 437 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |