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

Unified Diff: chrome/browser/ssl/ssl_manager.h

Issue 42314: SSLPolicy fix: Step 9. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ssl/ssl_host_state.cc ('k') | chrome/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ssl/ssl_manager.h
===================================================================
--- chrome/browser/ssl/ssl_manager.h (revision 12087)
+++ chrome/browser/ssl/ssl_manager.h (working copy)
@@ -270,6 +270,7 @@
ResourceType::Type resource_type,
const std::string& frame_origin,
const std::string& main_frame_origin,
+ FilterPolicy::Type filter_policy,
int ssl_cert_id,
int ssl_cert_status)
: manager_(manager),
@@ -277,6 +278,7 @@
resource_type_(resource_type),
frame_origin_(frame_origin),
main_frame_origin_(main_frame_origin),
+ filter_policy_(filter_policy),
ssl_cert_id_(ssl_cert_id),
ssl_cert_status_(ssl_cert_status) {
}
@@ -286,6 +288,7 @@
ResourceType::Type resource_type() const { return resource_type_; }
const std::string& frame_origin() const { return frame_origin_; }
const std::string& main_frame_origin() const { return main_frame_origin_; }
+ FilterPolicy::Type filter_policy() const { return filter_policy_; }
int ssl_cert_id() const { return ssl_cert_id_; }
int ssl_cert_status() const { return ssl_cert_status_; }
@@ -295,6 +298,7 @@
ResourceType::Type resource_type_;
std::string frame_origin_;
std::string main_frame_origin_;
+ FilterPolicy::Type filter_policy_;
int ssl_cert_id_;
int ssl_cert_status_;
@@ -323,8 +327,8 @@
// We have started a resource request with the given info.
virtual void OnRequestStarted(RequestInfo* info) = 0;
- // Returns the default security style for a given URL.
- virtual SecurityStyle GetDefaultStyle(const GURL& url) = 0;
+ // Update the SSL information in |entry| to match the current state.
+ virtual void UpdateEntry(SSLManager* manager, NavigationEntry* entry) = 0;
};
static void RegisterUserPrefs(PrefService* prefs);
@@ -441,15 +445,11 @@
const NotificationSource& source,
const NotificationDetails& details);
- // Entry point for navigation. This function begins the process of updating
- // the security UI when the main frame navigates.
- //
- // Called on the UI thread.
- void NavigationStateChanged();
-
// Called to determine if there were any processed SSL errors from request.
bool ProcessedSSLErrorFromRequest() const;
+ // The navigation controller associated with this SSLManager. The
+ // NavigationController is guaranteed to outlive the SSLManager.
NavigationController* controller() { return controller_; }
// Convenience methods for serializing/deserializing the security info.
@@ -510,8 +510,8 @@
// Dispatch NotificationType::SSL_VISIBLE_STATE_CHANGED notification.
void DispatchSSLVisibleStateChanged();
- // Convenience method for initializing navigation entries.
- void InitializeEntryIfNeeded(NavigationEntry* entry);
+ // Update the NavigationEntry with our current state.
+ void UpdateEntry(NavigationEntry* entry);
// Shows the pending messages (in info-bars) if any.
void ShowPendingMessages();
« no previous file with comments | « chrome/browser/ssl/ssl_host_state.cc ('k') | chrome/browser/ssl/ssl_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698