| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 struct WebWindowFeatures; | 50 struct WebWindowFeatures; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace gfx { | 53 namespace gfx { |
| 54 class ImageSkia; | 54 class ImageSkia; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace net { | 57 namespace net { |
| 58 class CookieOptions; | 58 class CookieOptions; |
| 59 class CookieStore; | 59 class CookieStore; |
| 60 class HttpNetworkSession; | |
| 61 class NetLog; | 60 class NetLog; |
| 62 class SSLCertRequestInfo; | 61 class SSLCertRequestInfo; |
| 63 class SSLInfo; | 62 class SSLInfo; |
| 64 class URLRequest; | 63 class URLRequest; |
| 65 class URLRequestContext; | 64 class URLRequestContext; |
| 66 class URLRequestContextGetter; | 65 class URLRequestContextGetter; |
| 67 class X509Certificate; | 66 class X509Certificate; |
| 68 } | 67 } |
| 69 | 68 |
| 70 namespace sandbox { | 69 namespace sandbox { |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 bool strict_enforcement, | 386 bool strict_enforcement, |
| 388 bool expired_previous_decision, | 387 bool expired_previous_decision, |
| 389 const base::Callback<void(bool)>& callback, | 388 const base::Callback<void(bool)>& callback, |
| 390 CertificateRequestResultType* result) {} | 389 CertificateRequestResultType* result) {} |
| 391 | 390 |
| 392 // Selects a SSL client certificate and returns it to the |callback|. If no | 391 // Selects a SSL client certificate and returns it to the |callback|. If no |
| 393 // certificate was selected NULL is returned to the |callback|. | 392 // certificate was selected NULL is returned to the |callback|. |
| 394 virtual void SelectClientCertificate( | 393 virtual void SelectClientCertificate( |
| 395 int render_process_id, | 394 int render_process_id, |
| 396 int render_frame_id, | 395 int render_frame_id, |
| 397 const net::HttpNetworkSession* network_session, | |
| 398 net::SSLCertRequestInfo* cert_request_info, | 396 net::SSLCertRequestInfo* cert_request_info, |
| 399 const base::Callback<void(net::X509Certificate*)>& callback) {} | 397 const base::Callback<void(net::X509Certificate*)>& callback); |
| 400 | 398 |
| 401 // Adds a new installable certificate or private key. | 399 // Adds a new installable certificate or private key. |
| 402 // Typically used to install an X.509 user certificate. | 400 // Typically used to install an X.509 user certificate. |
| 403 // Note that it's up to the embedder to verify that the data is | 401 // Note that it's up to the embedder to verify that the data is |
| 404 // well-formed. |cert_data| will be NULL if |cert_size| is 0. | 402 // well-formed. |cert_data| will be NULL if |cert_size| is 0. |
| 405 virtual void AddCertificate(net::CertificateMimeType cert_type, | 403 virtual void AddCertificate(net::CertificateMimeType cert_type, |
| 406 const void* cert_data, | 404 const void* cert_data, |
| 407 size_t cert_size, | 405 size_t cert_size, |
| 408 int render_process_id, | 406 int render_process_id, |
| 409 int render_frame_id) {} | 407 int render_frame_id) {} |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 647 // camera. Note that this does not query the user. |type| must be | 645 // camera. Note that this does not query the user. |type| must be |
| 648 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. | 646 // MEDIA_DEVICE_AUDIO_CAPTURE or MEDIA_DEVICE_VIDEO_CAPTURE. |
| 649 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, | 647 virtual bool CheckMediaAccessPermission(BrowserContext* browser_context, |
| 650 const GURL& security_origin, | 648 const GURL& security_origin, |
| 651 MediaStreamType type); | 649 MediaStreamType type); |
| 652 }; | 650 }; |
| 653 | 651 |
| 654 } // namespace content | 652 } // namespace content |
| 655 | 653 |
| 656 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 654 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |