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

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: worker_common.js was missing a license header (also a rebase) Created 5 years, 9 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 int cert_error, 394 int cert_error,
394 const net::SSLInfo& ssl_info, 395 const net::SSLInfo& ssl_info,
395 const GURL& request_url, 396 const GURL& request_url,
396 ResourceType resource_type, 397 ResourceType resource_type,
397 bool overridable, 398 bool overridable,
398 bool strict_enforcement, 399 bool strict_enforcement,
399 bool expired_previous_decision, 400 bool expired_previous_decision,
400 const base::Callback<void(bool)>& callback, 401 const base::Callback<void(bool)>& callback,
401 CertificateRequestResultType* result) {} 402 CertificateRequestResultType* result) {}
402 403
403 // Selects a SSL client certificate and returns it to the |callback|. If no 404 // Selects a SSL client certificate and returns it to the |delegate|. Note:
404 // certificate was selected nullptr is returned to the |callback|. Note: 405 // |delegate| may be called synchronously or asynchronously.
405 // |callback| may be called synchronously or asynchronously. 406 //
407 // TODO(davidben): Move this hook to WebContentsDelegate.
406 virtual void SelectClientCertificate( 408 virtual void SelectClientCertificate(
407 int render_process_id, 409 WebContents* web_contents,
408 int render_frame_id,
409 net::SSLCertRequestInfo* cert_request_info, 410 net::SSLCertRequestInfo* cert_request_info,
410 const base::Callback<void(net::X509Certificate*)>& callback); 411 scoped_ptr<ClientCertificateDelegate> delegate);
411 412
412 // Adds a new installable certificate or private key. 413 // Adds a new installable certificate or private key.
413 // Typically used to install an X.509 user certificate. 414 // Typically used to install an X.509 user certificate.
414 // Note that it's up to the embedder to verify that the data is 415 // Note that it's up to the embedder to verify that the data is
415 // well-formed. |cert_data| will be nullptr if |cert_size| is 0. 416 // well-formed. |cert_data| will be nullptr if |cert_size| is 0.
416 virtual void AddCertificate(net::CertificateMimeType cert_type, 417 virtual void AddCertificate(net::CertificateMimeType cert_type,
417 const void* cert_data, 418 const void* cert_data,
418 size_t cert_size, 419 size_t cert_size,
419 int render_process_id, 420 int render_process_id,
420 int render_frame_id) {} 421 int render_frame_id) {}
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 654 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
654 // implementation. Return nullptr to disable external surface video. 655 // implementation. Return nullptr to disable external surface video.
655 virtual ExternalVideoSurfaceContainer* 656 virtual ExternalVideoSurfaceContainer*
656 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 657 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
657 #endif 658 #endif
658 }; 659 };
659 660
660 } // namespace content 661 } // namespace content
661 662
662 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 663 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/client_certificate_delegate.h ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698