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 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
386 int cert_error, | 386 int cert_error, |
387 const net::SSLInfo& ssl_info, | 387 const net::SSLInfo& ssl_info, |
388 const GURL& request_url, | 388 const GURL& request_url, |
389 ResourceType resource_type, | 389 ResourceType resource_type, |
390 bool overridable, | 390 bool overridable, |
391 bool strict_enforcement, | 391 bool strict_enforcement, |
392 bool expired_previous_decision, | 392 bool expired_previous_decision, |
393 const base::Callback<void(bool)>& callback, | 393 const base::Callback<void(bool)>& callback, |
394 CertificateRequestResultType* result) {} | 394 CertificateRequestResultType* result) {} |
395 | 395 |
396 // Selects a SSL client certificate and returns it to the |callback|. If no | 396 // Selects a SSL client certificate and returns it to the |callback|. If no |
pneubeck (no reviews)
2014/12/14 16:45:13
might be worth documenting that callback can happe
davidben
2015/01/23 21:05:35
Done.
| |
397 // certificate was selected NULL is returned to the |callback|. | 397 // certificate was selected NULL is returned to the |callback|. |
398 virtual void SelectClientCertificate( | 398 virtual void SelectClientCertificate( |
399 int render_process_id, | 399 int render_process_id, |
400 int render_frame_id, | 400 int render_frame_id, |
401 net::SSLCertRequestInfo* cert_request_info, | 401 net::SSLCertRequestInfo* cert_request_info, |
402 const base::Callback<void(net::X509Certificate*)>& callback) {} | 402 const base::Callback<void(net::X509Certificate*)>& callback); |
403 | 403 |
404 // Adds a new installable certificate or private key. | 404 // Adds a new installable certificate or private key. |
405 // Typically used to install an X.509 user certificate. | 405 // Typically used to install an X.509 user certificate. |
406 // Note that it's up to the embedder to verify that the data is | 406 // Note that it's up to the embedder to verify that the data is |
407 // well-formed. |cert_data| will be NULL if |cert_size| is 0. | 407 // well-formed. |cert_data| will be NULL if |cert_size| is 0. |
408 virtual void AddCertificate(net::CertificateMimeType cert_type, | 408 virtual void AddCertificate(net::CertificateMimeType cert_type, |
409 const void* cert_data, | 409 const void* cert_data, |
410 size_t cert_size, | 410 size_t cert_size, |
411 int render_process_id, | 411 int render_process_id, |
412 int render_frame_id) {} | 412 int render_frame_id) {} |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
605 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 605 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
606 // implementation. Return NULL to disable external surface video. | 606 // implementation. Return NULL to disable external surface video. |
607 virtual ExternalVideoSurfaceContainer* | 607 virtual ExternalVideoSurfaceContainer* |
608 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 608 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
609 #endif | 609 #endif |
610 }; | 610 }; |
611 | 611 |
612 } // namespace content | 612 } // namespace content |
613 | 613 |
614 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 614 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |