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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 const GURL& url, | 79 const GURL& url, |
80 const std::string& name, | 80 const std::string& name, |
81 const std::string& value, | 81 const std::string& value, |
82 const std::string& domain, | 82 const std::string& domain, |
83 const std::string& path, | 83 const std::string& path, |
84 base::Time creation_time, | 84 base::Time creation_time, |
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 bool same_site, | 89 CookieSameSite same_site, |
90 bool enforce_strict_secure, | 90 bool enforce_strict_secure, |
91 CookiePriority priority, | 91 CookiePriority priority, |
92 const SetCookiesCallback& callback) { | 92 const SetCookiesCallback& callback) { |
93 NOTREACHED(); | 93 NOTREACHED(); |
94 } | 94 } |
95 | 95 |
96 void DelayedCookieMonster::GetCookiesWithOptionsAsync( | 96 void DelayedCookieMonster::GetCookiesWithOptionsAsync( |
97 const GURL& url, | 97 const GURL& url, |
98 const CookieOptions& options, | 98 const CookieOptions& options, |
99 const CookieMonster::GetCookiesCallback& callback) { | 99 const CookieMonster::GetCookiesCallback& callback) { |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 233 |
234 std::string CookieURLHelper::Format(const std::string& format_string) const { | 234 std::string CookieURLHelper::Format(const std::string& format_string) const { |
235 std::string new_string = format_string; | 235 std::string new_string = format_string; |
236 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", | 236 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%D", |
237 domain_and_registry_); | 237 domain_and_registry_); |
238 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); | 238 base::ReplaceSubstringsAfterOffset(&new_string, 0, "%R", registry_); |
239 return new_string; | 239 return new_string; |
240 } | 240 } |
241 | 241 |
242 } // namespace net | 242 } // namespace net |
OLD | NEW |