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

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

Issue 2363653002: Cleanup unreachable cert adding code (Closed)
Patch Set: Rebased 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
« no previous file with comments | « components/infobars/core/infobar_delegate.h ('k') | net/android/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // empty string if this sandboxed process type does not support living inside 773 // empty string if this sandboxed process type does not support living inside
784 // an AppContainer. 774 // an AppContainer.
785 virtual base::string16 GetAppContainerSidForSandboxType( 775 virtual base::string16 GetAppContainerSidForSandboxType(
786 int sandbox_type) const; 776 int sandbox_type) const;
787 #endif 777 #endif
788 }; 778 };
789 779
790 } // namespace content 780 } // namespace content
791 781
792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 782 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « components/infobars/core/infobar_delegate.h ('k') | net/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698