| 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 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 virtual void SelectClientCertificate( | 426 virtual void SelectClientCertificate( |
| 427 int render_process_id, | 427 int render_process_id, |
| 428 int render_frame_id, | 428 int render_frame_id, |
| 429 const net::HttpNetworkSession* network_session, | 429 const net::HttpNetworkSession* network_session, |
| 430 net::SSLCertRequestInfo* cert_request_info, | 430 net::SSLCertRequestInfo* cert_request_info, |
| 431 const base::Callback<void(net::X509Certificate*)>& callback) {} | 431 const base::Callback<void(net::X509Certificate*)>& callback) {} |
| 432 | 432 |
| 433 // Adds a new installable certificate or private key. | 433 // Adds a new installable certificate or private key. |
| 434 // Typically used to install an X.509 user certificate. | 434 // Typically used to install an X.509 user certificate. |
| 435 // Note that it's up to the embedder to verify that the data is | 435 // Note that it's up to the embedder to verify that the data is |
| 436 // well-formed. |cert_data| will be NULL if file_size is 0. | 436 // well-formed. |cert_data| will be NULL if |cert_size| is 0. |
| 437 virtual void AddCertificate( | 437 virtual void AddCertificate(net::CertificateMimeType cert_type, |
| 438 net::URLRequest* request, | 438 const void* cert_data, |
| 439 net::CertificateMimeType cert_type, | 439 size_t cert_size, |
| 440 const void* cert_data, | 440 int render_process_id, |
| 441 size_t cert_size, | 441 int render_frame_id) {} |
| 442 int render_process_id, | |
| 443 int render_view_id) {} | |
| 444 | 442 |
| 445 // Returns a class to get notifications about media event. The embedder can | 443 // Returns a class to get notifications about media event. The embedder can |
| 446 // return NULL if they're not interested. | 444 // return NULL if they're not interested. |
| 447 virtual MediaObserver* GetMediaObserver(); | 445 virtual MediaObserver* GetMediaObserver(); |
| 448 | 446 |
| 449 // Asks permission to show desktop notifications. |callback| needs to be run | 447 // Asks permission to show desktop notifications. |callback| needs to be run |
| 450 // when the user approves the request. | 448 // when the user approves the request. |
| 451 virtual void RequestDesktopNotificationPermission( | 449 virtual void RequestDesktopNotificationPermission( |
| 452 const GURL& source_origin, | 450 const GURL& source_origin, |
| 453 RenderFrameHost* render_frame_host, | 451 RenderFrameHost* render_frame_host, |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 640 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 643 // implementation. Return NULL to disable external surface video. | 641 // implementation. Return NULL to disable external surface video. |
| 644 virtual ExternalVideoSurfaceContainer* | 642 virtual ExternalVideoSurfaceContainer* |
| 645 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 643 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 646 #endif | 644 #endif |
| 647 }; | 645 }; |
| 648 | 646 |
| 649 } // namespace content | 647 } // namespace content |
| 650 | 648 |
| 651 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 649 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |