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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 struct WebWindowFeatures; | 51 struct WebWindowFeatures; |
52 } | 52 } |
53 | 53 |
54 namespace gfx { | 54 namespace gfx { |
55 class ImageSkia; | 55 class ImageSkia; |
56 } | 56 } |
57 | 57 |
58 namespace net { | 58 namespace net { |
59 class CookieOptions; | 59 class CookieOptions; |
60 class CookieStore; | 60 class CookieStore; |
61 class HttpNetworkSession; | |
62 class NetLog; | 61 class NetLog; |
63 class SSLCertRequestInfo; | 62 class SSLCertRequestInfo; |
64 class SSLInfo; | 63 class SSLInfo; |
65 class URLRequest; | 64 class URLRequest; |
66 class URLRequestContext; | 65 class URLRequestContext; |
67 class URLRequestContextGetter; | 66 class URLRequestContextGetter; |
68 class X509Certificate; | 67 class X509Certificate; |
69 } | 68 } |
70 | 69 |
71 namespace sandbox { | 70 namespace sandbox { |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 bool strict_enforcement, | 394 bool strict_enforcement, |
396 bool expired_previous_decision, | 395 bool expired_previous_decision, |
397 const base::Callback<void(bool)>& callback, | 396 const base::Callback<void(bool)>& callback, |
398 CertificateRequestResultType* result) {} | 397 CertificateRequestResultType* result) {} |
399 | 398 |
400 // Selects a SSL client certificate and returns it to the |callback|. If no | 399 // Selects a SSL client certificate and returns it to the |callback|. If no |
401 // certificate was selected NULL is returned to the |callback|. | 400 // certificate was selected NULL is returned to the |callback|. |
402 virtual void SelectClientCertificate( | 401 virtual void SelectClientCertificate( |
403 int render_process_id, | 402 int render_process_id, |
404 int render_frame_id, | 403 int render_frame_id, |
405 const net::HttpNetworkSession* network_session, | |
406 net::SSLCertRequestInfo* cert_request_info, | 404 net::SSLCertRequestInfo* cert_request_info, |
407 const base::Callback<void(net::X509Certificate*)>& callback) {} | 405 const base::Callback<void(net::X509Certificate*)>& callback); |
408 | 406 |
409 // Adds a new installable certificate or private key. | 407 // Adds a new installable certificate or private key. |
410 // Typically used to install an X.509 user certificate. | 408 // Typically used to install an X.509 user certificate. |
411 // Note that it's up to the embedder to verify that the data is | 409 // Note that it's up to the embedder to verify that the data is |
412 // well-formed. |cert_data| will be NULL if |cert_size| is 0. | 410 // well-formed. |cert_data| will be NULL if |cert_size| is 0. |
413 virtual void AddCertificate(net::CertificateMimeType cert_type, | 411 virtual void AddCertificate(net::CertificateMimeType cert_type, |
414 const void* cert_data, | 412 const void* cert_data, |
415 size_t cert_size, | 413 size_t cert_size, |
416 int render_process_id, | 414 int render_process_id, |
417 int render_frame_id) {} | 415 int render_frame_id) {} |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 // camera. Note that this does not query the user. |type| must be | 623 // camera. Note that this does not query the user. |type| must be |
626 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 624 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
627 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 625 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
628 const GURL& security_origin, | 626 const GURL& security_origin, |
629 MediaStreamType type); | 627 MediaStreamType type); |
630 }; | 628 }; |
631 | 629 |
632 } // namespace content | 630 } // namespace content |
633 | 631 |
634 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 632 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |