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

Side by Side Diff: net/cookies/cookie_store_test_helpers.cc

Issue 1666513002: Promote CookieMonster::DeleteCanonicalCookieAsync to CookieStore. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cookie_monster13
Patch Set: Rebase Created 4 years, 10 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
« no previous file with comments | « net/cookies/cookie_store_test_helpers.h ('k') | net/cookies/cookie_store_unittest.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/cookies/cookie_store_test_helpers.h" 5 #include "net/cookies/cookie_store_test_helpers.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 const std::string& cookie_name) { 147 const std::string& cookie_name) {
148 ADD_FAILURE(); 148 ADD_FAILURE();
149 } 149 }
150 150
151 void DelayedCookieMonster::DeleteCookieAsync(const GURL& url, 151 void DelayedCookieMonster::DeleteCookieAsync(const GURL& url,
152 const std::string& cookie_name, 152 const std::string& cookie_name,
153 const base::Closure& callback) { 153 const base::Closure& callback) {
154 ADD_FAILURE(); 154 ADD_FAILURE();
155 } 155 }
156 156
157 void DelayedCookieMonster::DeleteCanonicalCookieAsync(
158 const CanonicalCookie& cookie,
159 const DeleteCallback& callback) {
160 ADD_FAILURE();
161 }
162
157 void DelayedCookieMonster::DeleteAllCreatedBetweenAsync( 163 void DelayedCookieMonster::DeleteAllCreatedBetweenAsync(
158 const base::Time& delete_begin, 164 const base::Time& delete_begin,
159 const base::Time& delete_end, 165 const base::Time& delete_end,
160 const DeleteCallback& callback) { 166 const DeleteCallback& callback) {
161 ADD_FAILURE(); 167 ADD_FAILURE();
162 } 168 }
163 169
164 void DelayedCookieMonster::DeleteAllCreatedBetweenForHostAsync( 170 void DelayedCookieMonster::DeleteAllCreatedBetweenForHostAsync(
165 const base::Time delete_begin, 171 const base::Time delete_begin,
166 const base::Time delete_end, 172 const base::Time delete_end,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 211
206 std::string CookieURLHelper::Format(const std::string& format_string) const { 212 std::string CookieURLHelper::Format(const std::string& format_string) const {
207 std::string new_string = format_string; 213 std::string new_string = format_string;
208 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", 214 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D",
209 domain_and_registry_); 215 domain_and_registry_);
210 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); 216 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_);
211 return new_string; 217 return new_string;
212 } 218 }
213 219
214 } // namespace net 220 } // namespace net
OLDNEW
« no previous file with comments | « net/cookies/cookie_store_test_helpers.h ('k') | net/cookies/cookie_store_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698