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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_cookie_helper.h

Issue 124183002: Implement delete methods for the various CannedBrowsingDataHelpers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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 | Annotate | Revision Log
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 CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Clears the list of canned cookies. 126 // Clears the list of canned cookies.
127 void Reset(); 127 void Reset();
128 128
129 // True if no cookie are currently stored. 129 // True if no cookie are currently stored.
130 bool empty() const; 130 bool empty() const;
131 131
132 // BrowsingDataCookieHelper methods. 132 // BrowsingDataCookieHelper methods.
133 virtual void StartFetching( 133 virtual void StartFetching(
134 const net::CookieMonster::GetCookieListCallback& callback) OVERRIDE; 134 const net::CookieMonster::GetCookieListCallback& callback) OVERRIDE;
135 virtual void DeleteCookie(const net::CanonicalCookie& cookie) OVERRIDE;
135 136
136 // Returns the number of stored cookies. 137 // Returns the number of stored cookies.
137 size_t GetCookieCount() const; 138 size_t GetCookieCount() const;
138 139
139 // Returns the map that contains the cookie lists for all frame urls. 140 // Returns the map that contains the cookie lists for all frame urls.
140 const OriginCookieListMap& origin_cookie_list_map() { 141 const OriginCookieListMap& origin_cookie_list_map() {
141 return origin_cookie_list_map_; 142 return origin_cookie_list_map_;
142 } 143 }
143 144
144 private: 145 private:
(...skipping 12 matching lines...) Expand all
157 void AddCookie(const GURL& frame_url, 158 void AddCookie(const GURL& frame_url,
158 const net::CanonicalCookie& cookie); 159 const net::CanonicalCookie& cookie);
159 160
160 // Map that contains the cookie lists for all frame origins. 161 // Map that contains the cookie lists for all frame origins.
161 OriginCookieListMap origin_cookie_list_map_; 162 OriginCookieListMap origin_cookie_list_map_;
162 163
163 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataCookieHelper); 164 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataCookieHelper);
164 }; 165 };
165 166
166 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_ 167 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_COOKIE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698