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

Unified Diff: content/browser/ssl/ssl_host_state.h

Issue 9348109: Add extra data to BrowserContext so that content layer and other embedders can stash data with it t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
Index: content/browser/ssl/ssl_host_state.h
===================================================================
--- content/browser/ssl/ssl_host_state.h (revision 121897)
+++ content/browser/ssl/ssl_host_state.h (working copy)
@@ -12,10 +12,9 @@
#include "base/compiler_specific.h"
#include "base/basictypes.h"
+#include "base/supports_user_data.h"
#include "base/threading/non_thread_safe.h"
#include "content/common/content_export.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
#include "googleurl/src/gurl.h"
#include "net/base/x509_certificate.h"
@@ -32,12 +31,12 @@
// controllers.
class CONTENT_EXPORT SSLHostState
- : public content::NotificationObserver,
+ : NON_EXPORTED_BASE(base::SupportsUserData::Data),
NON_EXPORTED_BASE(public base::NonThreadSafe) {
public:
static SSLHostState* GetFor(content::BrowserContext* browser_context);
- explicit SSLHostState(content::BrowserContext* browser_context);
+ SSLHostState();
virtual ~SSLHostState();
// Records that a host has run insecure content.
@@ -57,10 +56,6 @@
net::X509Certificate* cert, const std::string& host);
private:
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
// A BrokenHostEntry is a pair of (host, process_id) that indicates the host
// contains insecure content in that renderer process.
typedef std::pair<std::string, int> BrokenHostEntry;
@@ -73,8 +68,6 @@
// Certificate policies for each host.
std::map<std::string, net::CertPolicy> cert_policy_for_host_;
- content::NotificationRegistrar registrar_;
-
DISALLOW_COPY_AND_ASSIGN(SSLHostState);
};

Powered by Google App Engine
This is Rietveld 408576698