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

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

Issue 2351803002: Switching ExtensionSpecialStoragePolicy::IsStorageDurable to use DurableStoragePermissionContext. (Closed)
Patch Set: Switching IsStorageDurable() to use DurableStoragePermissionContext. Created 4 years, 2 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // Sets the cookie setting for the given url. 80 // Sets the cookie setting for the given url.
81 // 81 //
82 // This should only be called on the UI thread. 82 // This should only be called on the UI thread.
83 void SetCookieSetting(const GURL& primary_url, ContentSetting setting); 83 void SetCookieSetting(const GURL& primary_url, ContentSetting setting);
84 84
85 // Resets the cookie setting for the given url. 85 // Resets the cookie setting for the given url.
86 // 86 //
87 // This should only be called on the UI thread. 87 // This should only be called on the UI thread.
88 void ResetCookieSetting(const GURL& primary_url); 88 void ResetCookieSetting(const GURL& primary_url);
89 89
90 bool IsStorageDurable(const GURL& origin) const;
91
92 // Detaches the |CookieSettings| from |PrefService|. This methods needs to be 90 // Detaches the |CookieSettings| from |PrefService|. This methods needs to be
93 // called before destroying the service. Afterwards, only const methods can be 91 // called before destroying the service. Afterwards, only const methods can be
94 // called. 92 // called.
95 void ShutdownOnUIThread() override; 93 void ShutdownOnUIThread() override;
96 94
97 // A helper for applying third party cookie blocking rules. 95 // A helper for applying third party cookie blocking rules.
98 ContentSetting GetCookieSetting( 96 ContentSetting GetCookieSetting(
99 const GURL& url, 97 const GURL& url,
100 const GURL& first_party_url, 98 const GURL& first_party_url,
101 bool setting_cookie, 99 bool setting_cookie,
(...skipping 21 matching lines...) Expand all
123 mutable base::Lock lock_; 121 mutable base::Lock lock_;
124 122
125 bool block_third_party_cookies_; 123 bool block_third_party_cookies_;
126 124
127 DISALLOW_COPY_AND_ASSIGN(CookieSettings); 125 DISALLOW_COPY_AND_ASSIGN(CookieSettings);
128 }; 126 };
129 127
130 } // namespace content_settings 128 } // namespace content_settings
131 129
132 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_ 130 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_COOKIE_SETTINGS_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | components/content_settings/core/browser/cookie_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698