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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 72 class TargetPolicy; | 72 class TargetPolicy; |
| 73 } | 73 } |
| 74 | 74 |
| 75 namespace ui { | 75 namespace ui { |
| 76 class SelectFilePolicy; | 76 class SelectFilePolicy; |
| 77 } | 77 } |
| 78 | 78 |
| 79 namespace storage { | 79 namespace storage { |
| 80 class ExternalMountPoints; | 80 class ExternalMountPoints; |
| 81 class FileSystemBackend; | 81 class FileSystemBackend; |
| 82 class QuotaManager; | |
| 82 } | 83 } |
| 83 | 84 |
| 84 namespace content { | 85 namespace content { |
| 85 | 86 |
| 86 enum class PermissionType; | 87 enum class PermissionType; |
| 87 class AccessTokenStore; | 88 class AccessTokenStore; |
| 88 class BrowserChildProcessHost; | 89 class BrowserChildProcessHost; |
| 89 class BrowserContext; | 90 class BrowserContext; |
| 90 class BrowserMainParts; | 91 class BrowserMainParts; |
| 91 class BrowserPluginGuestDelegate; | 92 class BrowserPluginGuestDelegate; |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 418 BrowserContext* browser_context, | 419 BrowserContext* browser_context, |
| 419 const GURL& site, | 420 const GURL& site, |
| 420 bool can_be_default, | 421 bool can_be_default, |
| 421 std::string* partition_domain, | 422 std::string* partition_domain, |
| 422 std::string* partition_name, | 423 std::string* partition_name, |
| 423 bool* in_memory); | 424 bool* in_memory); |
| 424 | 425 |
| 425 // Create and return a new quota permission context. | 426 // Create and return a new quota permission context. |
| 426 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); | 427 virtual QuotaPermissionContext* CreateQuotaPermissionContext(); |
| 427 | 428 |
| 429 // Gives the embedder a chance to register a custom QuotaEvictionPolicy for a | |
| 430 // storage type. | |
| 431 virtual void AddQuotaEvictionPolicies(content::BrowserContext* context, | |
|
raymes
2015/09/24 01:55:30
It's a bit unfortunate that we need to add a new c
| |
| 432 storage::QuotaManager* quota_manager) {} | |
| 433 | |
| 434 | |
| 428 // Informs the embedder that a certificate error has occured. If | 435 // Informs the embedder that a certificate error has occured. If |
| 429 // |overridable| is true and if |strict_enforcement| is false, the user | 436 // |overridable| is true and if |strict_enforcement| is false, the user |
| 430 // can ignore the error and continue. The embedder can call the callback | 437 // can ignore the error and continue. The embedder can call the callback |
| 431 // asynchronously. If |result| is not set to | 438 // asynchronously. If |result| is not set to |
| 432 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled | 439 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled |
| 433 // or denied immediately, and the callback won't be run. | 440 // or denied immediately, and the callback won't be run. |
| 434 virtual void AllowCertificateError(int render_process_id, | 441 virtual void AllowCertificateError(int render_process_id, |
| 435 int render_frame_id, | 442 int render_frame_id, |
| 436 int cert_error, | 443 int cert_error, |
| 437 const net::SSLInfo& ssl_info, | 444 const net::SSLInfo& ssl_info, |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 705 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 712 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 706 // implementation. Return nullptr to disable external surface video. | 713 // implementation. Return nullptr to disable external surface video. |
| 707 virtual ExternalVideoSurfaceContainer* | 714 virtual ExternalVideoSurfaceContainer* |
| 708 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 715 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 709 #endif | 716 #endif |
| 710 }; | 717 }; |
| 711 | 718 |
| 712 } // namespace content | 719 } // namespace content |
| 713 | 720 |
| 714 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 721 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |