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 <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include "chrome/browser/download/download_stats.h" | 39 #include "chrome/browser/download/download_stats.h" |
40 #include "chrome/browser/download/drag_download_item.h" | 40 #include "chrome/browser/download/drag_download_item.h" |
41 #include "chrome/browser/icon_loader.h" | 41 #include "chrome/browser/icon_loader.h" |
42 #include "chrome/browser/icon_manager.h" | 42 #include "chrome/browser/icon_manager.h" |
43 #include "chrome/browser/platform_util.h" | 43 #include "chrome/browser/platform_util.h" |
44 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
45 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" | 45 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" |
46 #include "chrome/browser/ui/browser.h" | 46 #include "chrome/browser/ui/browser.h" |
47 #include "chrome/browser/ui/browser_list.h" | 47 #include "chrome/browser/ui/browser_list.h" |
48 #include "chrome/browser/ui/browser_window.h" | 48 #include "chrome/browser/ui/browser_window.h" |
| 49 #include "chrome/browser/ui/host_desktop.h" |
49 #include "chrome/common/extensions/api/downloads.h" | 50 #include "chrome/common/extensions/api/downloads.h" |
50 #include "components/web_modal/web_contents_modal_dialog_manager.h" | 51 #include "components/web_modal/web_contents_modal_dialog_manager.h" |
51 #include "content/public/browser/download_interrupt_reasons.h" | 52 #include "content/public/browser/download_interrupt_reasons.h" |
52 #include "content/public/browser/download_item.h" | 53 #include "content/public/browser/download_item.h" |
53 #include "content/public/browser/download_save_info.h" | 54 #include "content/public/browser/download_save_info.h" |
54 #include "content/public/browser/download_url_parameters.h" | 55 #include "content/public/browser/download_url_parameters.h" |
55 #include "content/public/browser/notification_details.h" | 56 #include "content/public/browser/notification_details.h" |
56 #include "content/public/browser/notification_service.h" | 57 #include "content/public/browser/notification_service.h" |
57 #include "content/public/browser/notification_source.h" | 58 #include "content/public/browser/notification_source.h" |
58 #include "content/public/browser/render_frame_host.h" | 59 #include "content/public/browser/render_frame_host.h" |
(...skipping 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1899 return; | 1900 return; |
1900 base::Time now(base::Time::Now()); | 1901 base::Time now(base::Time::Now()); |
1901 int delta = now.ToTimeT() - last_checked_removal_.ToTimeT(); | 1902 int delta = now.ToTimeT() - last_checked_removal_.ToTimeT(); |
1902 if (delta <= kFileExistenceRateLimitSeconds) | 1903 if (delta <= kFileExistenceRateLimitSeconds) |
1903 return; | 1904 return; |
1904 last_checked_removal_ = now; | 1905 last_checked_removal_ = now; |
1905 manager->CheckForHistoryFilesRemoval(); | 1906 manager->CheckForHistoryFilesRemoval(); |
1906 } | 1907 } |
1907 | 1908 |
1908 } // namespace extensions | 1909 } // namespace extensions |
OLD | NEW |