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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 class CdmFactory; | 66 class CdmFactory; |
67 } | 67 } |
68 | 68 |
69 namespace service_manager { | 69 namespace service_manager { |
70 class BinderRegistry; | 70 class BinderRegistry; |
71 class Service; | 71 class Service; |
72 struct BindSourceInfo; | 72 struct BindSourceInfo; |
73 } | 73 } |
74 | 74 |
75 namespace net { | 75 namespace net { |
| 76 class ClientCertIdentity; |
| 77 using ClientCertIdentityList = std::vector<std::unique_ptr<ClientCertIdentity>>; |
76 class CookieOptions; | 78 class CookieOptions; |
77 class NetLog; | 79 class NetLog; |
78 class SSLCertRequestInfo; | 80 class SSLCertRequestInfo; |
79 class SSLInfo; | 81 class SSLInfo; |
80 class URLRequest; | 82 class URLRequest; |
81 class URLRequestContext; | 83 class URLRequestContext; |
82 class X509Certificate; | |
83 typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; | |
84 } | 84 } |
85 | 85 |
86 namespace rappor { | 86 namespace rappor { |
87 class RapporService; | 87 class RapporService; |
88 } | 88 } |
89 | 89 |
90 namespace sandbox { | 90 namespace sandbox { |
91 class TargetPolicy; | 91 class TargetPolicy; |
92 } | 92 } |
93 | 93 |
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 bool expired_previous_decision, | 475 bool expired_previous_decision, |
476 const base::Callback<void(CertificateRequestResultType)>& callback); | 476 const base::Callback<void(CertificateRequestResultType)>& callback); |
477 | 477 |
478 // Selects a SSL client certificate and returns it to the |delegate|. Note: | 478 // Selects a SSL client certificate and returns it to the |delegate|. Note: |
479 // |delegate| may be called synchronously or asynchronously. | 479 // |delegate| may be called synchronously or asynchronously. |
480 // | 480 // |
481 // TODO(davidben): Move this hook to WebContentsDelegate. | 481 // TODO(davidben): Move this hook to WebContentsDelegate. |
482 virtual void SelectClientCertificate( | 482 virtual void SelectClientCertificate( |
483 WebContents* web_contents, | 483 WebContents* web_contents, |
484 net::SSLCertRequestInfo* cert_request_info, | 484 net::SSLCertRequestInfo* cert_request_info, |
485 net::CertificateList client_certs, | 485 net::ClientCertIdentityList client_certs, |
486 std::unique_ptr<ClientCertificateDelegate> delegate); | 486 std::unique_ptr<ClientCertificateDelegate> delegate); |
487 | 487 |
488 // Returns a class to get notifications about media event. The embedder can | 488 // Returns a class to get notifications about media event. The embedder can |
489 // return nullptr if they're not interested. | 489 // return nullptr if they're not interested. |
490 virtual MediaObserver* GetMediaObserver(); | 490 virtual MediaObserver* GetMediaObserver(); |
491 | 491 |
492 // Returns the platform notification service, capable of displaying Web | 492 // Returns the platform notification service, capable of displaying Web |
493 // Notifications to the user. The embedder can return a nullptr if they don't | 493 // Notifications to the user. The embedder can return a nullptr if they don't |
494 // support this functionality. May be called from any thread. | 494 // support this functionality. May be called from any thread. |
495 virtual PlatformNotificationService* GetPlatformNotificationService(); | 495 virtual PlatformNotificationService* GetPlatformNotificationService(); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 797 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
798 GetTaskSchedulerInitParams(); | 798 GetTaskSchedulerInitParams(); |
799 | 799 |
800 // Performs any necessary PostTask API redirection to the task scheduler. | 800 // Performs any necessary PostTask API redirection to the task scheduler. |
801 virtual void PerformExperimentalTaskSchedulerRedirections() {} | 801 virtual void PerformExperimentalTaskSchedulerRedirections() {} |
802 }; | 802 }; |
803 | 803 |
804 } // namespace content | 804 } // namespace content |
805 | 805 |
806 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 806 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |