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/appcache/appcache_storage_impl.h" | 5 #include "content/browser/appcache/appcache_storage_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <functional> | 10 #include <functional> |
11 #include <limits> | 11 #include <limits> |
12 #include <set> | 12 #include <set> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/bind_helpers.h" | 16 #include "base/bind_helpers.h" |
17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
18 #include "base/location.h" | 18 #include "base/location.h" |
19 #include "base/logging.h" | 19 #include "base/logging.h" |
20 #include "base/profiler/scoped_tracker.h" | 20 #include "base/profiler/scoped_tracker.h" |
21 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
22 #include "base/stl_util.h" | 22 #include "base/stl_util.h" |
23 #include "base/strings/string_util.h" | 23 #include "base/strings/string_util.h" |
24 #include "base/thread_task_runner_handle.h" | 24 #include "base/threading/thread_task_runner_handle.h" |
25 #include "base/trace_event/trace_event.h" | 25 #include "base/trace_event/trace_event.h" |
26 #include "content/browser/appcache/appcache.h" | 26 #include "content/browser/appcache/appcache.h" |
27 #include "content/browser/appcache/appcache_database.h" | 27 #include "content/browser/appcache/appcache_database.h" |
28 #include "content/browser/appcache/appcache_entry.h" | 28 #include "content/browser/appcache/appcache_entry.h" |
29 #include "content/browser/appcache/appcache_group.h" | 29 #include "content/browser/appcache/appcache_group.h" |
30 #include "content/browser/appcache/appcache_histograms.h" | 30 #include "content/browser/appcache/appcache_histograms.h" |
31 #include "content/browser/appcache/appcache_quota_client.h" | 31 #include "content/browser/appcache/appcache_quota_client.h" |
32 #include "content/browser/appcache/appcache_response.h" | 32 #include "content/browser/appcache/appcache_response.h" |
33 #include "content/browser/appcache/appcache_service_impl.h" | 33 #include "content/browser/appcache/appcache_service_impl.h" |
34 #include "net/base/cache_type.h" | 34 #include "net/base/cache_type.h" |
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1983 | 1983 |
1984 void AppCacheStorageImpl::OnLazyCommitTimer() { | 1984 void AppCacheStorageImpl::OnLazyCommitTimer() { |
1985 lazy_commit_timer_.Stop(); | 1985 lazy_commit_timer_.Stop(); |
1986 if (is_disabled()) | 1986 if (is_disabled()) |
1987 return; | 1987 return; |
1988 scoped_refptr<DatabaseTask> task(new CommitLastAccessTimesTask(this)); | 1988 scoped_refptr<DatabaseTask> task(new CommitLastAccessTimesTask(this)); |
1989 task->Schedule(); | 1989 task->Schedule(); |
1990 } | 1990 } |
1991 | 1991 |
1992 } // namespace content | 1992 } // namespace content |
OLD | NEW |