OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ios/net/cookies/cookie_store_ios.h" | 5 #include "ios/net/cookies/cookie_store_ios.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/files/file_util.h" | 12 #include "base/files/file_util.h" |
13 #include "base/ios/ios_util.h" | 13 #include "base/ios/ios_util.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/mac/foundation_util.h" | 16 #include "base/mac/foundation_util.h" |
17 #include "base/mac/scoped_nsobject.h" | 17 #include "base/mac/scoped_nsobject.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/observer_list.h" | 21 #include "base/observer_list.h" |
22 #include "base/sequenced_task_runner.h" | 22 #include "base/sequenced_task_runner.h" |
23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
24 #include "base/strings/sys_string_conversions.h" | 24 #include "base/strings/sys_string_conversions.h" |
25 #include "base/task_runner_util.h" | 25 #include "base/task_runner_util.h" |
26 #include "base/thread_task_runner_handle.h" | |
27 #include "base/threading/thread_restrictions.h" | 26 #include "base/threading/thread_restrictions.h" |
| 27 #include "base/threading/thread_task_runner_handle.h" |
28 #include "ios/net/cookies/cookie_creation_time_manager.h" | 28 #include "ios/net/cookies/cookie_creation_time_manager.h" |
29 #include "ios/net/cookies/cookie_store_ios_client.h" | 29 #include "ios/net/cookies/cookie_store_ios_client.h" |
30 #include "ios/net/cookies/system_cookie_util.h" | 30 #include "ios/net/cookies/system_cookie_util.h" |
31 #import "net/base/mac/url_conversions.h" | 31 #import "net/base/mac/url_conversions.h" |
32 #include "net/cookies/cookie_util.h" | 32 #include "net/cookies/cookie_util.h" |
33 #include "net/cookies/parsed_cookie.h" | 33 #include "net/cookies/parsed_cookie.h" |
34 #include "url/gurl.h" | 34 #include "url/gurl.h" |
35 | 35 |
36 namespace net { | 36 namespace net { |
37 | 37 |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1155 weak_factory_.GetWeakPtr(), callback); | 1155 weak_factory_.GetWeakPtr(), callback); |
1156 } | 1156 } |
1157 | 1157 |
1158 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { | 1158 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { |
1159 DCHECK(thread_checker_.CalledOnValidThread()); | 1159 DCHECK(thread_checker_.CalledOnValidThread()); |
1160 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, | 1160 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, |
1161 weak_factory_.GetWeakPtr(), callback); | 1161 weak_factory_.GetWeakPtr(), callback); |
1162 } | 1162 } |
1163 | 1163 |
1164 } // namespace net | 1164 } // namespace net |
OLD | NEW |