Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: . Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>>;
davidben 2017/06/01 23:41:25 Do we still like to do this kind of forward decl?
mattm 2017/06/02 04:04:20 I think I did do that in most places, but since co
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 ukm { 90 namespace ukm {
91 class UkmRecorder; 91 class UkmRecorder;
92 } 92 }
93 93
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 virtual bool ShouldRedirectDOMStorageTaskRunner(); 820 virtual bool ShouldRedirectDOMStorageTaskRunner();
821 821
822 // If this returns true, all BrowserThreads (but UI/IO) that support it on 822 // If this returns true, all BrowserThreads (but UI/IO) that support it on
823 // this platform will experimentally be redirected to TaskScheduler. 823 // this platform will experimentally be redirected to TaskScheduler.
824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler(); 824 virtual bool RedirectNonUINonIOBrowserThreadsToTaskScheduler();
825 }; 825 };
826 826
827 } // namespace content 827 } // namespace content
828 828
829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 829 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698