| 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 "content/browser/net/sqlite_persistent_cookie_store.h" | 5 #include "content/browser/net/sqlite_persistent_cookie_store.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <utility> | 10 #include <utility> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/file_util.h" | 15 #include "base/file_util.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/location.h" | 17 #include "base/location.h" |
| 18 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/memory/ref_counted.h" | 19 #include "base/memory/ref_counted.h" |
| 20 #include "base/memory/scoped_ptr.h" | 20 #include "base/memory/scoped_ptr.h" |
| 21 #include "base/metrics/histogram.h" | 21 #include "base/metrics/histogram.h" |
| 22 #include "base/sequenced_task_runner.h" |
| 22 #include "base/string_util.h" | 23 #include "base/string_util.h" |
| 23 #include "base/stringprintf.h" | 24 #include "base/stringprintf.h" |
| 24 #include "base/synchronization/lock.h" | 25 #include "base/synchronization/lock.h" |
| 25 #include "base/task/sequenced_task_runner.h" | |
| 26 #include "base/threading/sequenced_worker_pool.h" | 26 #include "base/threading/sequenced_worker_pool.h" |
| 27 #include "base/time.h" | 27 #include "base/time.h" |
| 28 #include "content/public/browser/browser_thread.h" | 28 #include "content/public/browser/browser_thread.h" |
| 29 #include "content/public/browser/cookie_store_factory.h" | 29 #include "content/public/browser/cookie_store_factory.h" |
| 30 #include "googleurl/src/gurl.h" | 30 #include "googleurl/src/gurl.h" |
| 31 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 31 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
| 32 #include "net/cookies/canonical_cookie.h" | 32 #include "net/cookies/canonical_cookie.h" |
| 33 #include "net/cookies/cookie_constants.h" | 33 #include "net/cookies/cookie_constants.h" |
| 34 #include "net/cookies/cookie_util.h" | 34 #include "net/cookies/cookie_util.h" |
| 35 #include "sql/error_delegate_util.h" | 35 #include "sql/error_delegate_util.h" |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1214 path, | 1214 path, |
| 1215 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), | 1215 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO), |
| 1216 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( | 1216 BrowserThread::GetBlockingPool()->GetSequencedTaskRunner( |
| 1217 BrowserThread::GetBlockingPool()->GetSequenceToken()), | 1217 BrowserThread::GetBlockingPool()->GetSequenceToken()), |
| 1218 restore_old_session_cookies, | 1218 restore_old_session_cookies, |
| 1219 storage_policy); | 1219 storage_policy); |
| 1220 return new net::CookieMonster(persistent_store, cookie_monster_delegate); | 1220 return new net::CookieMonster(persistent_store, cookie_monster_delegate); |
| 1221 } | 1221 } |
| 1222 | 1222 |
| 1223 } // namespace content | 1223 } // namespace content |
| OLD | NEW |