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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 struct ServiceInfo; | 71 struct ServiceInfo; |
72 } | 72 } |
73 | 73 |
74 namespace net { | 74 namespace net { |
75 class CookieOptions; | 75 class CookieOptions; |
76 class NetLog; | 76 class NetLog; |
77 class SSLCertRequestInfo; | 77 class SSLCertRequestInfo; |
78 class SSLInfo; | 78 class SSLInfo; |
79 class URLRequest; | 79 class URLRequest; |
80 class URLRequestContext; | 80 class URLRequestContext; |
| 81 class X509Certificate; |
| 82 typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; |
81 } | 83 } |
82 | 84 |
83 namespace rappor { | 85 namespace rappor { |
84 class RapporService; | 86 class RapporService; |
85 } | 87 } |
86 | 88 |
87 namespace sandbox { | 89 namespace sandbox { |
88 class TargetPolicy; | 90 class TargetPolicy; |
89 } | 91 } |
90 | 92 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
480 bool expired_previous_decision, | 482 bool expired_previous_decision, |
481 const base::Callback<void(CertificateRequestResultType)>& callback) {} | 483 const base::Callback<void(CertificateRequestResultType)>& callback) {} |
482 | 484 |
483 // Selects a SSL client certificate and returns it to the |delegate|. Note: | 485 // Selects a SSL client certificate and returns it to the |delegate|. Note: |
484 // |delegate| may be called synchronously or asynchronously. | 486 // |delegate| may be called synchronously or asynchronously. |
485 // | 487 // |
486 // TODO(davidben): Move this hook to WebContentsDelegate. | 488 // TODO(davidben): Move this hook to WebContentsDelegate. |
487 virtual void SelectClientCertificate( | 489 virtual void SelectClientCertificate( |
488 WebContents* web_contents, | 490 WebContents* web_contents, |
489 net::SSLCertRequestInfo* cert_request_info, | 491 net::SSLCertRequestInfo* cert_request_info, |
| 492 net::CertificateList client_certs, |
490 std::unique_ptr<ClientCertificateDelegate> delegate); | 493 std::unique_ptr<ClientCertificateDelegate> delegate); |
491 | 494 |
492 // Returns a class to get notifications about media event. The embedder can | 495 // Returns a class to get notifications about media event. The embedder can |
493 // return nullptr if they're not interested. | 496 // return nullptr if they're not interested. |
494 virtual MediaObserver* GetMediaObserver(); | 497 virtual MediaObserver* GetMediaObserver(); |
495 | 498 |
496 // Returns the platform notification service, capable of displaying Web | 499 // Returns the platform notification service, capable of displaying Web |
497 // Notifications to the user. The embedder can return a nullptr if they don't | 500 // Notifications to the user. The embedder can return a nullptr if they don't |
498 // support this functionality. May be called from any thread. | 501 // support this functionality. May be called from any thread. |
499 virtual PlatformNotificationService* GetPlatformNotificationService(); | 502 virtual PlatformNotificationService* GetPlatformNotificationService(); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 828 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
826 | 829 |
827 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 830 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
828 // this platform will experimentally be redirected to TaskScheduler. | 831 // this platform will experimentally be redirected to TaskScheduler. |
829 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 832 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
830 }; | 833 }; |
831 | 834 |
832 } // namespace content | 835 } // namespace content |
833 | 836 |
834 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 837 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |