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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
457 // temporary storage. | 457 // temporary storage. |
458 virtual scoped_ptr<storage::QuotaEvictionPolicy> | 458 virtual scoped_ptr<storage::QuotaEvictionPolicy> |
459 GetTemporaryStorageEvictionPolicy(BrowserContext* context); | 459 GetTemporaryStorageEvictionPolicy(BrowserContext* context); |
460 | 460 |
461 // Informs the embedder that a certificate error has occured. If | 461 // Informs the embedder that a certificate error has occured. If |
462 // |overridable| is true and if |strict_enforcement| is false, the user | 462 // |overridable| is true and if |strict_enforcement| is false, the user |
463 // can ignore the error and continue. The embedder can call the callback | 463 // can ignore the error and continue. The embedder can call the callback |
464 // asynchronously. If |result| is not set to | 464 // asynchronously. If |result| is not set to |
465 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled | 465 // CERTIFICATE_REQUEST_RESULT_TYPE_CONTINUE, the request will be cancelled |
466 // or denied immediately, and the callback won't be run. | 466 // or denied immediately, and the callback won't be run. |
467 virtual void AllowCertificateError(int render_process_id, | 467 virtual void AllowCertificateError(WebContents* web_contents, |
468 int render_frame_id, | |
469 int cert_error, | 468 int cert_error, |
470 const net::SSLInfo& ssl_info, | 469 const net::SSLInfo& ssl_info, |
471 const GURL& request_url, | 470 const GURL& request_url, |
472 ResourceType resource_type, | 471 ResourceType resource_type, |
473 bool overridable, | 472 bool overridable, |
474 bool strict_enforcement, | 473 bool strict_enforcement, |
475 bool expired_previous_decision, | 474 bool expired_previous_decision, |
476 const base::Callback<void(bool)>& callback, | 475 const base::Callback<void(bool)>& callback, |
477 CertificateRequestResultType* result) {} | 476 CertificateRequestResultType* result) {} |
478 | 477 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 754 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
756 // implementation. Return nullptr to disable external surface video. | 755 // implementation. Return nullptr to disable external surface video. |
757 virtual ExternalVideoSurfaceContainer* | 756 virtual ExternalVideoSurfaceContainer* |
758 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 757 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
759 #endif | 758 #endif |
760 }; | 759 }; |
761 | 760 |
762 } // namespace content | 761 } // namespace content |
763 | 762 |
764 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 763 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |