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

Side by Side Diff: chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.h

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
12 #include "chrome/browser/ui/website_settings/website_settings_ui.h" 12 #include "chrome/browser/ui/website_settings/website_settings_ui.h"
13 #include "components/security_state/security_state_model.h" 13 #include "components/security_state/security_state_model.h"
14 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
15 15
16 class WebsiteSettingsUIBridge; 16 class WebsiteSettingsUIBridge;
17 17
18 namespace content { 18 namespace content {
19 class WebContents; 19 class WebContents;
20 } 20 }
21 21
22 namespace net {
23 class X509Certificate;
24 }
25
22 // This NSWindowController subclass manages the InfoBubbleWindow and view that 26 // This NSWindowController subclass manages the InfoBubbleWindow and view that
23 // are displayed when the user clicks the favicon or security lock icon. 27 // are displayed when the user clicks the favicon or security lock icon.
24 // 28 //
25 // TODO(palmer): Normalize all WebsiteSettings*, SiteSettings*, PageInfo*, et c. 29 // TODO(palmer): Normalize all WebsiteSettings*, SiteSettings*, PageInfo*, et c.
26 // to OriginInfo*. 30 // to OriginInfo*.
27 @interface WebsiteSettingsBubbleController : BaseBubbleController { 31 @interface WebsiteSettingsBubbleController : BaseBubbleController {
28 @private 32 @private
29 content::WebContents* webContents_; 33 content::WebContents* webContents_;
30 34
31 base::scoped_nsobject<NSView> contentView_; 35 base::scoped_nsobject<NSView> contentView_;
(...skipping 11 matching lines...) Expand all
43 // DevTools Security panel for most users, but may be the certificate viewer 47 // DevTools Security panel for most users, but may be the certificate viewer
44 // for enterprise users with DevTools disabled. 48 // for enterprise users with DevTools disabled.
45 NSButton* securityDetailsButton_; 49 NSButton* securityDetailsButton_;
46 50
47 // URL of the page for which the bubble is shown. 51 // URL of the page for which the bubble is shown.
48 GURL url_; 52 GURL url_;
49 53
50 // Whether DevTools is disabled for the relevant profile. 54 // Whether DevTools is disabled for the relevant profile.
51 BOOL isDevToolsDisabled_; 55 BOOL isDevToolsDisabled_;
52 56
53 // The ID of the server certificate from the identity info. This should 57 // The server certificate from the identity info. This should always be
54 // always be non-zero on a cryptographic connection, and 0 otherwise. 58 // non-null on a cryptographic connection, and null otherwise.
55 int certificateId_; 59 scoped_refptr<net::X509Certificate> certificate_;
56 60
57 // The link button for revoking certificate decisions. 61 // The link button for revoking certificate decisions.
58 NSButton* resetDecisionsButton_; 62 NSButton* resetDecisionsButton_;
59 63
60 // Separator line. 64 // Separator line.
61 NSView* separatorAfterSecuritySection_; 65 NSView* separatorAfterSecuritySection_;
62 66
63 // Container for the site settings section. 67 // Container for the site settings section.
64 NSView* siteSettingsSectionView_; 68 NSView* siteSettingsSectionView_;
65 69
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 141
138 private: 142 private:
139 // The WebContents the bubble UI is attached to. 143 // The WebContents the bubble UI is attached to.
140 content::WebContents* web_contents_; 144 content::WebContents* web_contents_;
141 145
142 // The Cocoa controller for the bubble UI. 146 // The Cocoa controller for the bubble UI.
143 WebsiteSettingsBubbleController* bubble_controller_; 147 WebsiteSettingsBubbleController* bubble_controller_;
144 148
145 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge); 149 DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUIBridge);
146 }; 150 };
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698