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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 virtual void SelectClientCertificate( | 427 virtual void SelectClientCertificate( |
428 int render_process_id, | 428 int render_process_id, |
429 int render_frame_id, | 429 int render_frame_id, |
430 const net::HttpNetworkSession* network_session, | 430 const net::HttpNetworkSession* network_session, |
431 net::SSLCertRequestInfo* cert_request_info, | 431 net::SSLCertRequestInfo* cert_request_info, |
432 const base::Callback<void(net::X509Certificate*)>& callback) {} | 432 const base::Callback<void(net::X509Certificate*)>& callback) {} |
433 | 433 |
434 // Adds a new installable certificate or private key. | 434 // Adds a new installable certificate or private key. |
435 // Typically used to install an X.509 user certificate. | 435 // Typically used to install an X.509 user certificate. |
436 // Note that it's up to the embedder to verify that the data is | 436 // Note that it's up to the embedder to verify that the data is |
437 // well-formed. |cert_data| will be NULL if file_size is 0. | 437 // well-formed. |cert_data| will be NULL if |cert_size| is 0. |
438 virtual void AddCertificate( | 438 virtual void AddCertificate(net::CertificateMimeType cert_type, |
439 net::URLRequest* request, | 439 const void* cert_data, |
440 net::CertificateMimeType cert_type, | 440 size_t cert_size, |
441 const void* cert_data, | 441 int render_process_id, |
442 size_t cert_size, | 442 int render_frame_id) {} |
443 int render_process_id, | |
444 int render_view_id) {} | |
445 | 443 |
446 // Returns a class to get notifications about media event. The embedder can | 444 // Returns a class to get notifications about media event. The embedder can |
447 // return NULL if they're not interested. | 445 // return NULL if they're not interested. |
448 virtual MediaObserver* GetMediaObserver(); | 446 virtual MediaObserver* GetMediaObserver(); |
449 | 447 |
450 // Asks permission to show desktop notifications. |callback| needs to be run | 448 // Asks permission to show desktop notifications. |callback| needs to be run |
451 // when the user approves the request. | 449 // when the user approves the request. |
452 virtual void RequestDesktopNotificationPermission( | 450 virtual void RequestDesktopNotificationPermission( |
453 const GURL& source_origin, | 451 const GURL& source_origin, |
454 RenderFrameHost* render_frame_host, | 452 RenderFrameHost* render_frame_host, |
(...skipping 187 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 |