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

Side by Side Diff: content/browser/ssl/ssl_manager.h

Issue 2218253002: Stop revoking cert exceptions on resources loaded from cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clearer comment Created 4 years, 4 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 | « no previous file | content/browser/ssl/ssl_manager.cc » ('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_BROWSER_SSL_SSL_MANAGER_H_ 5 #ifndef CONTENT_BROWSER_SSL_SSL_MANAGER_H_
6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 6 #define CONTENT_BROWSER_SSL_SSL_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 namespace net { 21 namespace net {
22 class SSLInfo; 22 class SSLInfo;
23 } 23 }
24 24
25 namespace content { 25 namespace content {
26 class BrowserContext; 26 class BrowserContext;
27 class NavigationEntryImpl; 27 class NavigationEntryImpl;
28 class NavigationControllerImpl; 28 class NavigationControllerImpl;
29 class SSLPolicy; 29 class SSLPolicy;
30 struct LoadCommittedDetails; 30 struct LoadCommittedDetails;
31 struct LoadFromMemoryCacheDetails;
32 struct ResourceRedirectDetails; 31 struct ResourceRedirectDetails;
33 struct ResourceRequestDetails; 32 struct ResourceRequestDetails;
34 33
35 // The SSLManager SSLManager controls the SSL UI elements in a WebContents. It 34 // The SSLManager SSLManager controls the SSL UI elements in a WebContents. It
36 // listens for various events that influence when these elements should or 35 // listens for various events that influence when these elements should or
37 // should not be displayed and adjusts them accordingly. 36 // should not be displayed and adjusts them accordingly.
38 // 37 //
39 // There is one SSLManager per tab. 38 // There is one SSLManager per tab.
40 // The security state (secure/insecure) is stored in the navigation entry. 39 // The security state (secure/insecure) is stored in the navigation entry.
41 // Along with it are stored any SSL error code and the associated cert. 40 // Along with it are stored any SSL error code and the associated cert.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual ~SSLManager(); 75 virtual ~SSLManager();
77 76
78 SSLPolicy* policy() { return policy_.get(); } 77 SSLPolicy* policy() { return policy_.get(); }
79 SSLPolicyBackend* backend() { return &backend_; } 78 SSLPolicyBackend* backend() { return &backend_; }
80 79
81 // The navigation controller associated with this SSLManager. The 80 // The navigation controller associated with this SSLManager. The
82 // NavigationController is guaranteed to outlive the SSLManager. 81 // NavigationController is guaranteed to outlive the SSLManager.
83 NavigationControllerImpl* controller() { return controller_; } 82 NavigationControllerImpl* controller() { return controller_; }
84 83
85 void DidCommitProvisionalLoad(const LoadCommittedDetails& details); 84 void DidCommitProvisionalLoad(const LoadCommittedDetails& details);
86 void DidLoadFromMemoryCache(const LoadFromMemoryCacheDetails& details);
87 void DidStartResourceResponse(const ResourceRequestDetails& details); 85 void DidStartResourceResponse(const ResourceRequestDetails& details);
88 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details); 86 void DidReceiveResourceRedirect(const ResourceRedirectDetails& details);
89 87
90 // Insecure content entry point. 88 // Insecure content entry point.
91 void DidRunInsecureContent(const GURL& security_origin); 89 void DidRunInsecureContent(const GURL& security_origin);
92 90
93 private: 91 private:
94 // Updates the NavigationEntry with our current state. This will 92 // Updates the NavigationEntry with our current state. This will
95 // notify the WebContents of an SSL state change if a change was 93 // notify the WebContents of an SSL state change if a change was
96 // actually made. 94 // actually made.
(...skipping 11 matching lines...) Expand all
108 // The NavigationController that owns this SSLManager. We are responsible 106 // The NavigationController that owns this SSLManager. We are responsible
109 // for the security UI of this tab. 107 // for the security UI of this tab.
110 NavigationControllerImpl* controller_; 108 NavigationControllerImpl* controller_;
111 109
112 DISALLOW_COPY_AND_ASSIGN(SSLManager); 110 DISALLOW_COPY_AND_ASSIGN(SSLManager);
113 }; 111 };
114 112
115 } // namespace content 113 } // namespace content
116 114
117 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_ 115 #endif // CONTENT_BROWSER_SSL_SSL_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698