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

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

Issue 859213006: Cancel client auth requests when not promptable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@client-auth-cancel-1
Patch Set: extension test Created 5 years, 10 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 namespace content { 83 namespace content {
84 84
85 class AccessTokenStore; 85 class AccessTokenStore;
86 class BrowserChildProcessHost; 86 class BrowserChildProcessHost;
87 class BrowserContext; 87 class BrowserContext;
88 class BrowserMainParts; 88 class BrowserMainParts;
89 class BrowserPluginGuestDelegate; 89 class BrowserPluginGuestDelegate;
90 class BrowserPpapiHost; 90 class BrowserPpapiHost;
91 class BrowserURLHandler; 91 class BrowserURLHandler;
92 class ClientCertificateDelegate;
92 class DevToolsManagerDelegate; 93 class DevToolsManagerDelegate;
93 class ExternalVideoSurfaceContainer; 94 class ExternalVideoSurfaceContainer;
94 class LocationProvider; 95 class LocationProvider;
95 class MediaObserver; 96 class MediaObserver;
96 class NavigatorConnectContext; 97 class NavigatorConnectContext;
97 class NavigatorConnectServiceFactory; 98 class NavigatorConnectServiceFactory;
98 class PlatformNotificationService; 99 class PlatformNotificationService;
99 class PresentationServiceDelegate; 100 class PresentationServiceDelegate;
100 class QuotaPermissionContext; 101 class QuotaPermissionContext;
101 class RenderFrameHost; 102 class RenderFrameHost;
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 int cert_error, 392 int cert_error,
392 const net::SSLInfo& ssl_info, 393 const net::SSLInfo& ssl_info,
393 const GURL& request_url, 394 const GURL& request_url,
394 ResourceType resource_type, 395 ResourceType resource_type,
395 bool overridable, 396 bool overridable,
396 bool strict_enforcement, 397 bool strict_enforcement,
397 bool expired_previous_decision, 398 bool expired_previous_decision,
398 const base::Callback<void(bool)>& callback, 399 const base::Callback<void(bool)>& callback,
399 CertificateRequestResultType* result) {} 400 CertificateRequestResultType* result) {}
400 401
401 // Selects a SSL client certificate and returns it to the |callback|. If no 402 // Selects a SSL client certificate and returns it to the |delegate|. Note:
402 // certificate was selected nullptr is returned to the |callback|. Note: 403 // |delegate| may be called synchronously or asynchronously.
403 // |callback| may be called synchronously or asynchronously. 404 //
405 // TODO(davidben): Move this hook to WebContentsDelegate.
404 virtual void SelectClientCertificate( 406 virtual void SelectClientCertificate(
405 int render_process_id, 407 WebContents* web_contents,
406 int render_frame_id,
407 net::SSLCertRequestInfo* cert_request_info, 408 net::SSLCertRequestInfo* cert_request_info,
408 const base::Callback<void(net::X509Certificate*)>& callback); 409 scoped_ptr<ClientCertificateDelegate> delegate);
409 410
410 // Adds a new installable certificate or private key. 411 // Adds a new installable certificate or private key.
411 // Typically used to install an X.509 user certificate. 412 // Typically used to install an X.509 user certificate.
412 // Note that it's up to the embedder to verify that the data is 413 // Note that it's up to the embedder to verify that the data is
413 // well-formed. |cert_data| will be nullptr if |cert_size| is 0. 414 // well-formed. |cert_data| will be nullptr if |cert_size| is 0.
414 virtual void AddCertificate(net::CertificateMimeType cert_type, 415 virtual void AddCertificate(net::CertificateMimeType cert_type,
415 const void* cert_data, 416 const void* cert_data,
416 size_t cert_size, 417 size_t cert_size,
417 int render_process_id, 418 int render_process_id,
418 int render_frame_id) {} 419 int render_frame_id) {}
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 639 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
639 // implementation. Return nullptr to disable external surface video. 640 // implementation. Return nullptr to disable external surface video.
640 virtual ExternalVideoSurfaceContainer* 641 virtual ExternalVideoSurfaceContainer*
641 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 642 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
642 #endif 643 #endif
643 }; 644 };
644 645
645 } // namespace content 646 } // namespace content
646 647
647 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 648 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698