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

Unified Diff: chrome/browser/content_settings/host_content_settings_map.h

Issue 7008025: Apply third party cookie blocking to all kinds of cookies (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 7 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: chrome/browser/content_settings/host_content_settings_map.h
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h
index 09b3500def05a7f85d35d810dcfb17411e70bdc6..68f4cad3f9567761fe92f094cc5909994f23b537 100644
--- a/chrome/browser/content_settings/host_content_settings_map.h
+++ b/chrome/browser/content_settings/host_content_settings_map.h
@@ -65,6 +65,16 @@ class HostContentSettingsMap
ContentSettingsType content_type,
const std::string& resource_identifier) const;
+ // Gets the content setting for cookies. This takes the third party cookie
+ // flag into account, and therefore needs to know whether we read or write a
+ // cookie.
+ //
+ // This may be called on any thread.
+ ContentSetting GetCookieContentSetting(
+ const GURL& url,
+ const GURL& first_party_url,
+ bool setting_cookie) const;
+
// Returns a single ContentSetting which applies to a given URL or
// CONTENT_SETTING_DEFAULT, if no exception applies. Note that certain
// internal schemes are whitelisted. For ContentSettingsTypes that require an
@@ -169,6 +179,11 @@ class HostContentSettingsMap
virtual ~HostContentSettingsMap();
+ ContentSetting GetContentSettingInternal(
+ const GURL& url,
+ ContentSettingsType content_type,
+ const std::string& resource_identifier) const;
+
void UnregisterObservers();
// Various migration methods (old cookie, popup and per-host data gets
« no previous file with comments | « chrome/browser/chrome_worker_message_filter.cc ('k') | chrome/browser/content_settings/host_content_settings_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698