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> |
(...skipping 22 matching lines...) Expand all Loading... |
33 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 33 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
34 #include "net/cookies/canonical_cookie.h" | 34 #include "net/cookies/canonical_cookie.h" |
35 #include "net/cookies/cookie_constants.h" | 35 #include "net/cookies/cookie_constants.h" |
36 #include "net/cookies/cookie_util.h" | 36 #include "net/cookies/cookie_util.h" |
37 #include "sql/error_delegate_util.h" | 37 #include "sql/error_delegate_util.h" |
38 #include "sql/meta_table.h" | 38 #include "sql/meta_table.h" |
39 #include "sql/statement.h" | 39 #include "sql/statement.h" |
40 #include "sql/transaction.h" | 40 #include "sql/transaction.h" |
41 #include "third_party/sqlite/sqlite3.h" | 41 #include "third_party/sqlite/sqlite3.h" |
42 #include "url/gurl.h" | 42 #include "url/gurl.h" |
43 #include "webkit/browser/quota/special_storage_policy.h" | 43 #include "storage/browser/quota/special_storage_policy.h" |
44 | 44 |
45 using base::Time; | 45 using base::Time; |
46 | 46 |
47 namespace content { | 47 namespace content { |
48 | 48 |
49 // This class is designed to be shared between any client thread and the | 49 // This class is designed to be shared between any client thread and the |
50 // background task runner. It batches operations and commits them on a timer. | 50 // background task runner. It batches operations and commits them on a timer. |
51 // | 51 // |
52 // SQLitePersistentCookieStore::Load is called to load all cookies. It | 52 // SQLitePersistentCookieStore::Load is called to load all cookies. It |
53 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread | 53 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread |
(...skipping 1274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1328 if (base::CommandLine::InitializedForCurrentProcess() && | 1328 if (base::CommandLine::InitializedForCurrentProcess() && |
1329 base::CommandLine::ForCurrentProcess()->HasSwitch( | 1329 base::CommandLine::ForCurrentProcess()->HasSwitch( |
1330 switches::kEnableFileCookies)) { | 1330 switches::kEnableFileCookies)) { |
1331 cookie_monster->SetEnableFileScheme(true); | 1331 cookie_monster->SetEnableFileScheme(true); |
1332 } | 1332 } |
1333 | 1333 |
1334 return cookie_monster; | 1334 return cookie_monster; |
1335 } | 1335 } |
1336 | 1336 |
1337 } // namespace content | 1337 } // namespace content |
OLD | NEW |