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

Side by Side Diff: components/content_settings/core/browser/cookie_settings.h

Issue 1164073005: Allow script to request durable storage permission (chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased onto content setting patch Created 5 years, 5 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
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 COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 void SetCookieSetting(const ContentSettingsPattern& primary_pattern, 83 void SetCookieSetting(const ContentSettingsPattern& primary_pattern,
84 const ContentSettingsPattern& secondary_pattern, 84 const ContentSettingsPattern& secondary_pattern,
85 ContentSetting setting); 85 ContentSetting setting);
86 86
87 // Resets the cookie setting for the given patterns. 87 // Resets the cookie setting for the given patterns.
88 // 88 //
89 // This should only be called on the UI thread. 89 // This should only be called on the UI thread.
90 void ResetCookieSetting(const ContentSettingsPattern& primary_pattern, 90 void ResetCookieSetting(const ContentSettingsPattern& primary_pattern,
91 const ContentSettingsPattern& secondary_pattern); 91 const ContentSettingsPattern& secondary_pattern);
92 92
93 void GetDurableSettings(ContentSettingsForOneType* settings) const;
mlamouri (slow - plz ping) 2015/07/02 09:53:01 Why do we need that?
dgrogan 2015/07/07 04:15:11 It's called by chrome/browser/extensions/extension
94
93 // Detaches the |CookieSettings| from |PrefService|. This methods needs to be 95 // Detaches the |CookieSettings| from |PrefService|. This methods needs to be
94 // called before destroying the service. Afterwards, only const methods can be 96 // called before destroying the service. Afterwards, only const methods can be
95 // called. 97 // called.
96 void ShutdownOnUIThread() override; 98 void ShutdownOnUIThread() override;
97 99
98 // A helper for applying third party cookie blocking rules. 100 // A helper for applying third party cookie blocking rules.
99 ContentSetting GetCookieSetting( 101 ContentSetting GetCookieSetting(
100 const GURL& url, 102 const GURL& url,
101 const GURL& first_party_url, 103 const GURL& first_party_url,
102 bool setting_cookie, 104 bool setting_cookie,
(...skipping 21 matching lines...) Expand all
124 mutable base::Lock lock_; 126 mutable base::Lock lock_;
125 127
126 bool block_third_party_cookies_; 128 bool block_third_party_cookies_;
127 129
128 DISALLOW_COPY_AND_ASSIGN(CookieSettings); 130 DISALLOW_COPY_AND_ASSIGN(CookieSettings);
129 }; 131 };
130 132
131 } // namespace content_settings 133 } // namespace content_settings
132 134
133 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ 135 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698