| 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 // Portions of this code based on Mozilla: | 5 // Portions of this code based on Mozilla: |
| 6 // (netwerk/cookie/src/nsCookieService.cpp) | 6 // (netwerk/cookie/src/nsCookieService.cpp) |
| 7 /* ***** BEGIN LICENSE BLOCK ***** | 7 /* ***** BEGIN LICENSE BLOCK ***** |
| 8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 8 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 9 * | 9 * |
| 10 * The contents of this file are subject to the Mozilla Public License Version | 10 * The contents of this file are subject to the Mozilla Public License Version |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "base/location.h" | 54 #include "base/location.h" |
| 55 #include "base/logging.h" | 55 #include "base/logging.h" |
| 56 #include "base/macros.h" | 56 #include "base/macros.h" |
| 57 #include "base/memory/ptr_util.h" | 57 #include "base/memory/ptr_util.h" |
| 58 #include "base/metrics/field_trial.h" | 58 #include "base/metrics/field_trial.h" |
| 59 #include "base/metrics/histogram.h" | 59 #include "base/metrics/histogram.h" |
| 60 #include "base/profiler/scoped_tracker.h" | 60 #include "base/profiler/scoped_tracker.h" |
| 61 #include "base/single_thread_task_runner.h" | 61 #include "base/single_thread_task_runner.h" |
| 62 #include "base/strings/string_util.h" | 62 #include "base/strings/string_util.h" |
| 63 #include "base/strings/stringprintf.h" | 63 #include "base/strings/stringprintf.h" |
| 64 #include "base/thread_task_runner_handle.h" | 64 #include "base/threading/thread_task_runner_handle.h" |
| 65 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 65 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 66 #include "net/cookies/canonical_cookie.h" | 66 #include "net/cookies/canonical_cookie.h" |
| 67 #include "net/cookies/cookie_util.h" | 67 #include "net/cookies/cookie_util.h" |
| 68 #include "net/cookies/parsed_cookie.h" | 68 #include "net/cookies/parsed_cookie.h" |
| 69 #include "url/origin.h" | 69 #include "url/origin.h" |
| 70 | 70 |
| 71 using base::Time; | 71 using base::Time; |
| 72 using base::TimeDelta; | 72 using base::TimeDelta; |
| 73 using base::TimeTicks; | 73 using base::TimeTicks; |
| 74 | 74 |
| (...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 it != hook_map_.end(); ++it) { | 2426 it != hook_map_.end(); ++it) { |
| 2427 std::pair<GURL, std::string> key = it->first; | 2427 std::pair<GURL, std::string> key = it->first; |
| 2428 if (cookie.IncludeForRequestURL(key.first, opts) && | 2428 if (cookie.IncludeForRequestURL(key.first, opts) && |
| 2429 cookie.Name() == key.second) { | 2429 cookie.Name() == key.second) { |
| 2430 it->second->Notify(cookie, removed); | 2430 it->second->Notify(cookie, removed); |
| 2431 } | 2431 } |
| 2432 } | 2432 } |
| 2433 } | 2433 } |
| 2434 | 2434 |
| 2435 } // namespace net | 2435 } // namespace net |
| OLD | NEW |