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

Unified Diff: chrome/browser/profiles/profile_io_data.h

Issue 6773006: Add enableReferrers and enableHyperlinkAuditing to contentSettings.misc API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 8 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/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_io_data.h
diff --git a/chrome/browser/profiles/profile_io_data.h b/chrome/browser/profiles/profile_io_data.h
index bb1e049bc83159c91f6742b00dc882099c4e3cba..739ba4b06c77901e80b02f99870eb657a2d19e37 100644
--- a/chrome/browser/profiles/profile_io_data.h
+++ b/chrome/browser/profiles/profile_io_data.h
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/net/chrome_url_request_context.h"
+#include "chrome/browser/prefs/pref_member.h"
#include "chrome/browser/profiles/profile.h"
#include "net/base/cookie_monster.h"
@@ -132,6 +133,14 @@ class ProfileIOData : public base::RefCountedThreadSafe<ProfileIOData> {
// functions have been provided to assist in common operations.
void LazyInitialize() const;
+ // Called when the profile is destroyed.
+ void ShutdownOnUIThread();
+
+ BooleanPrefMember* enable_referrers() const {
+ return &enable_referrers_;
+ }
+
+ private:
// --------------------------------------------
// Virtual interface for subtypes to implement:
// --------------------------------------------
@@ -159,6 +168,7 @@ class ProfileIOData : public base::RefCountedThreadSafe<ProfileIOData> {
scoped_refptr<ChromeURLRequestContext> main_context,
const std::string& app_id) const = 0;
+ mutable BooleanPrefMember enable_referrers_;
mutable bool initialized_;
DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
« no previous file with comments | « chrome/browser/profiles/profile_impl_io_data.cc ('k') | chrome/browser/profiles/profile_io_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698