| 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" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 12 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 13 | 13 |
| 14 using net::registry_controlled_domains::GetDomainAndRegistry; | 14 using net::registry_controlled_domains::GetDomainAndRegistry; |
| 15 using net::registry_controlled_domains::GetRegistryLength; | 15 using net::registry_controlled_domains::GetRegistryLength; |
| 16 using net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES; | 16 using net::registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES; |
| 17 using net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES; | 17 using net::registry_controlled_domains::INCLUDE_UNKNOWN_REGISTRIES; |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 std::string GetRegistry(const GURL& url) { | 21 std::string GetRegistry(const GURL& url) { |
| (...skipping 211 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 |