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 20 matching lines...) Expand all Loading... |
31 #include "googleurl/src/gurl.h" | 31 #include "googleurl/src/gurl.h" |
32 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 32 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
33 #include "net/cookies/canonical_cookie.h" | 33 #include "net/cookies/canonical_cookie.h" |
34 #include "net/cookies/cookie_constants.h" | 34 #include "net/cookies/cookie_constants.h" |
35 #include "net/cookies/cookie_util.h" | 35 #include "net/cookies/cookie_util.h" |
36 #include "sql/error_delegate_util.h" | 36 #include "sql/error_delegate_util.h" |
37 #include "sql/meta_table.h" | 37 #include "sql/meta_table.h" |
38 #include "sql/statement.h" | 38 #include "sql/statement.h" |
39 #include "sql/transaction.h" | 39 #include "sql/transaction.h" |
40 #include "third_party/sqlite/sqlite3.h" | 40 #include "third_party/sqlite/sqlite3.h" |
41 #include "webkit/quota/special_storage_policy.h" | 41 #include "webkit/browser/quota/special_storage_policy.h" |
42 | 42 |
43 using base::Time; | 43 using base::Time; |
44 | 44 |
45 namespace content { | 45 namespace content { |
46 | 46 |
47 // This class is designed to be shared between any client thread and the | 47 // This class is designed to be shared between any client thread and the |
48 // background task runner. It batches operations and commits them on a timer. | 48 // background task runner. It batches operations and commits them on a timer. |
49 // | 49 // |
50 // SQLitePersistentCookieStore::Load is called to load all cookies. It | 50 // SQLitePersistentCookieStore::Load is called to load all cookies. It |
51 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread | 51 // delegates to Backend::Load, which posts a Backend::LoadAndNotifyOnDBThread |
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 | 1225 |
1226 const std::string cookie_priority_experiment_group = | 1226 const std::string cookie_priority_experiment_group = |
1227 base::FieldTrialList::FindFullName("CookieRetentionPriorityStudy"); | 1227 base::FieldTrialList::FindFullName("CookieRetentionPriorityStudy"); |
1228 cookie_monster->SetPriorityAwareGarbageCollection( | 1228 cookie_monster->SetPriorityAwareGarbageCollection( |
1229 cookie_priority_experiment_group == "ExperimentOn"); | 1229 cookie_priority_experiment_group == "ExperimentOn"); |
1230 | 1230 |
1231 return cookie_monster; | 1231 return cookie_monster; |
1232 } | 1232 } |
1233 | 1233 |
1234 } // namespace content | 1234 } // namespace content |
OLD | NEW |