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

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

Issue 1701063002: CookieStore: Remove reference counting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@threadsafe
Patch Set: merge Created 4 years, 9 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 16 matching lines...) Expand all
27 registry_length); 27 registry_length);
28 } 28 }
29 29
30 } // namespace 30 } // namespace
31 31
32 namespace net { 32 namespace net {
33 33
34 const int kDelayedTime = 0; 34 const int kDelayedTime = 0;
35 35
36 DelayedCookieMonster::DelayedCookieMonster() 36 DelayedCookieMonster::DelayedCookieMonster()
37 : cookie_monster_(new CookieMonster(NULL, NULL)), 37 : cookie_monster_(new CookieMonster(nullptr, nullptr)),
38 did_run_(false), 38 did_run_(false),
39 result_(false) { 39 result_(false) {}
40 }
41 40
42 DelayedCookieMonster::~DelayedCookieMonster() { 41 DelayedCookieMonster::~DelayedCookieMonster() {
43 } 42 }
44 43
45 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) { 44 void DelayedCookieMonster::SetCookiesInternalCallback(bool result) {
46 result_ = result; 45 result_ = result;
47 did_run_ = true; 46 did_run_ = true;
48 } 47 }
49 48
50 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback( 49 void DelayedCookieMonster::GetCookiesWithOptionsInternalCallback(
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 229
231 std::string CookieURLHelper::Format(const std::string& format_string) const { 230 std::string CookieURLHelper::Format(const std::string& format_string) const {
232 std::string new_string = format_string; 231 std::string new_string = format_string;
233 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", 232 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D",
234 domain_and_registry_); 233 domain_and_registry_);
235 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); 234 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_);
236 return new_string; 235 return new_string;
237 } 236 }
238 237
239 } // namespace net 238 } // 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