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 "chrome/browser/extensions/api/downloads/downloads_api.h" | 5 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "base/macros.h" | 22 #include "base/macros.h" |
23 #include "base/memory/weak_ptr.h" | 23 #include "base/memory/weak_ptr.h" |
24 #include "base/metrics/histogram.h" | 24 #include "base/metrics/histogram.h" |
25 #include "base/single_thread_task_runner.h" | 25 #include "base/single_thread_task_runner.h" |
26 #include "base/stl_util.h" | 26 #include "base/stl_util.h" |
27 #include "base/strings/string16.h" | 27 #include "base/strings/string16.h" |
28 #include "base/strings/string_split.h" | 28 #include "base/strings/string_split.h" |
29 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
30 #include "base/strings/stringprintf.h" | 30 #include "base/strings/stringprintf.h" |
31 #include "base/task/cancelable_task_tracker.h" | 31 #include "base/task/cancelable_task_tracker.h" |
32 #include "base/thread_task_runner_handle.h" | 32 #include "base/threading/thread_task_runner_handle.h" |
33 #include "base/values.h" | 33 #include "base/values.h" |
34 #include "build/build_config.h" | 34 #include "build/build_config.h" |
35 #include "chrome/browser/browser_process.h" | 35 #include "chrome/browser/browser_process.h" |
36 #include "chrome/browser/download/download_danger_prompt.h" | 36 #include "chrome/browser/download/download_danger_prompt.h" |
37 #include "chrome/browser/download/download_file_icon_extractor.h" | 37 #include "chrome/browser/download/download_file_icon_extractor.h" |
38 #include "chrome/browser/download/download_prefs.h" | 38 #include "chrome/browser/download/download_prefs.h" |
39 #include "chrome/browser/download/download_query.h" | 39 #include "chrome/browser/download/download_query.h" |
40 #include "chrome/browser/download/download_service.h" | 40 #include "chrome/browser/download/download_service.h" |
41 #include "chrome/browser/download/download_service_factory.h" | 41 #include "chrome/browser/download/download_service_factory.h" |
42 #include "chrome/browser/download/download_shelf.h" | 42 #include "chrome/browser/download/download_shelf.h" |
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 return; | 1900 return; |
1901 base::Time now(base::Time::Now()); | 1901 base::Time now(base::Time::Now()); |
1902 int delta = now.ToTimeT() - last_checked_removal_.ToTimeT(); | 1902 int delta = now.ToTimeT() - last_checked_removal_.ToTimeT(); |
1903 if (delta <= kFileExistenceRateLimitSeconds) | 1903 if (delta <= kFileExistenceRateLimitSeconds) |
1904 return; | 1904 return; |
1905 last_checked_removal_ = now; | 1905 last_checked_removal_ = now; |
1906 manager->CheckForHistoryFilesRemoval(); | 1906 manager->CheckForHistoryFilesRemoval(); |
1907 } | 1907 } |
1908 | 1908 |
1909 } // namespace extensions | 1909 } // namespace extensions |
OLD | NEW |