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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 bool expired_previous_decision, | 471 bool expired_previous_decision, |
472 const base::Callback<void(CertificateRequestResultType)>& callback); | 472 const base::Callback<void(CertificateRequestResultType)>& callback); |
473 | 473 |
474 // Selects a SSL client certificate and returns it to the |delegate|. Note: | 474 // Selects a SSL client certificate and returns it to the |delegate|. Note: |
475 // |delegate| may be called synchronously or asynchronously. | 475 // |delegate| may be called synchronously or asynchronously. |
476 // | 476 // |
477 // TODO(davidben): Move this hook to WebContentsDelegate. | 477 // TODO(davidben): Move this hook to WebContentsDelegate. |
478 virtual void SelectClientCertificate( | 478 virtual void SelectClientCertificate( |
479 WebContents* web_contents, | 479 WebContents* web_contents, |
480 net::SSLCertRequestInfo* cert_request_info, | 480 net::SSLCertRequestInfo* cert_request_info, |
481 net::CertificateList client_certs, | 481 net::ClientCertIdentityList client_certs, |
482 std::unique_ptr<ClientCertificateDelegate> delegate); | 482 std::unique_ptr<ClientCertificateDelegate> delegate); |
483 | 483 |
484 // Returns a class to get notifications about media event. The embedder can | 484 // Returns a class to get notifications about media event. The embedder can |
485 // return nullptr if they're not interested. | 485 // return nullptr if they're not interested. |
486 virtual MediaObserver* GetMediaObserver(); | 486 virtual MediaObserver* GetMediaObserver(); |
487 | 487 |
488 // Returns the platform notification service, capable of displaying Web | 488 // Returns the platform notification service, capable of displaying Web |
489 // Notifications to the user. The embedder can return a nullptr if they don't | 489 // Notifications to the user. The embedder can return a nullptr if they don't |
490 // support this functionality. May be called from any thread. | 490 // support this functionality. May be called from any thread. |
491 virtual PlatformNotificationService* GetPlatformNotificationService(); | 491 virtual PlatformNotificationService* GetPlatformNotificationService(); |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
801 virtual bool ShouldRedirectDOMStorageTaskRunner(); | 801 virtual bool ShouldRedirectDOMStorageTaskRunner(); |
802 | 802 |
803 // If this returns true, all BrowserThreads (but UI/IO) that support it on | 803 // If this returns true, all BrowserThreads (but UI/IO) that support it on |
804 // this platform will experimentally be redirected to TaskScheduler. | 804 // this platform will experimentally be redirected to TaskScheduler. |
805 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); | 805 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); |
806 }; | 806 }; |
807 | 807 |
808 } // namespace content | 808 } // namespace content |
809 | 809 |
810 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 810 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |