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

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

Issue 2363653002: Cleanup unreachable cert adding code (Closed)
Patch Set: Created 4 years, 2 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 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 471
472 // Selects a SSL client certificate and returns it to the |delegate|. Note: 472 // Selects a SSL client certificate and returns it to the |delegate|. Note:
473 // |delegate| may be called synchronously or asynchronously. 473 // |delegate| may be called synchronously or asynchronously.
474 // 474 //
475 // TODO(davidben): Move this hook to WebContentsDelegate. 475 // TODO(davidben): Move this hook to WebContentsDelegate.
476 virtual void SelectClientCertificate( 476 virtual void SelectClientCertificate(
477 WebContents* web_contents, 477 WebContents* web_contents,
478 net::SSLCertRequestInfo* cert_request_info, 478 net::SSLCertRequestInfo* cert_request_info,
479 std::unique_ptr<ClientCertificateDelegate> delegate); 479 std::unique_ptr<ClientCertificateDelegate> delegate);
480 480
481 // Adds a new installable certificate or private key.
482 // Typically used to install an X.509 user certificate.
483 // Note that it's up to the embedder to verify that the data is
484 // well-formed. |cert_data| will be nullptr if |cert_size| is 0.
485 virtual void AddCertificate(net::CertificateMimeType cert_type,
486 const void* cert_data,
487 size_t cert_size,
488 int render_process_id,
489 int render_frame_id) {}
490
491 // Returns a class to get notifications about media event. The embedder can 481 // Returns a class to get notifications about media event. The embedder can
492 // return nullptr if they're not interested. 482 // return nullptr if they're not interested.
493 virtual MediaObserver* GetMediaObserver(); 483 virtual MediaObserver* GetMediaObserver();
494 484
495 // Returns the platform notification service, capable of displaying Web 485 // Returns the platform notification service, capable of displaying Web
496 // Notifications to the user. The embedder can return a nullptr if they don't 486 // Notifications to the user. The embedder can return a nullptr if they don't
497 // support this functionality. May be called from any thread. 487 // support this functionality. May be called from any thread.
498 virtual PlatformNotificationService* GetPlatformNotificationService(); 488 virtual PlatformNotificationService* GetPlatformNotificationService();
499 489
500 // Returns true if the given page is allowed to open a window of the given 490 // Returns true if the given page is allowed to open a window of the given
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 // Returns whether the Win32k lockdown process mitigation should be applied to 774 // Returns whether the Win32k lockdown process mitigation should be applied to
785 // a process hosting a plugin with the specified |mime_type|. 775 // a process hosting a plugin with the specified |mime_type|.
786 virtual bool IsWin32kLockdownEnabledForMimeType( 776 virtual bool IsWin32kLockdownEnabledForMimeType(
787 const std::string& mime_type) const; 777 const std::string& mime_type) const;
788 #endif 778 #endif
789 }; 779 };
790 780
791 } // namespace content 781 } // namespace content
792 782
793 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 783 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698