OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 base::Time expiration_time, | 85 base::Time expiration_time, |
86 base::Time last_access_time, | 86 base::Time last_access_time, |
87 bool secure, | 87 bool secure, |
88 bool http_only, | 88 bool http_only, |
89 CookieSameSite same_site, | 89 CookieSameSite same_site, |
90 CookiePriority priority, | 90 CookiePriority priority, |
91 const SetCookiesCallback& callback) { | 91 const SetCookiesCallback& callback) { |
92 NOTREACHED(); | 92 NOTREACHED(); |
93 } | 93 } |
94 | 94 |
| 95 void DelayedCookieMonster::SetCanonicalCookieAsync( |
| 96 std::unique_ptr<CanonicalCookie> cookie, |
| 97 bool secure_source, |
| 98 bool modify_http_only, |
| 99 const SetCookiesCallback& callback) { |
| 100 NOTREACHED(); |
| 101 } |
| 102 |
95 void DelayedCookieMonster::GetCookiesWithOptionsAsync( | 103 void DelayedCookieMonster::GetCookiesWithOptionsAsync( |
96 const GURL& url, | 104 const GURL& url, |
97 const CookieOptions& options, | 105 const CookieOptions& options, |
98 const CookieMonster::GetCookiesCallback& callback) { | 106 const CookieMonster::GetCookiesCallback& callback) { |
99 did_run_ = false; | 107 did_run_ = false; |
100 cookie_monster_->GetCookiesWithOptionsAsync( | 108 cookie_monster_->GetCookiesWithOptionsAsync( |
101 url, options, | 109 url, options, |
102 base::Bind(&DelayedCookieMonster::GetCookiesWithOptionsInternalCallback, | 110 base::Bind(&DelayedCookieMonster::GetCookiesWithOptionsInternalCallback, |
103 base::Unretained(this))); | 111 base::Unretained(this))); |
104 DCHECK_EQ(did_run_, true); | 112 DCHECK_EQ(did_run_, true); |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 240 |
233 std::string CookieURLHelper::Format(const std::string& format_string) const { | 241 std::string CookieURLHelper::Format(const std::string& format_string) const { |
234 std::string new_string = format_string; | 242 std::string new_string = format_string; |
235 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", | 243 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", |
236 domain_and_registry_); | 244 domain_and_registry_); |
237 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); | 245 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); |
238 return new_string; | 246 return new_string; |
239 } | 247 } |
240 | 248 |
241 } // namespace net | 249 } // namespace net |
OLD | NEW |