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 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/keyed_service/core/keyed_service.h" | 11 #include "components/keyed_service/core/keyed_service.h" |
12 #include "extensions/features/features.h" | 12 #include "extensions/features/features.h" |
13 | 13 |
14 class ChromeDownloadManagerDelegate; | 14 class ChromeDownloadManagerDelegate; |
15 class DownloadHistory; | 15 class DownloadHistory; |
16 class ExtensionDownloadsEventRouter; | 16 class ExtensionDownloadsEventRouter; |
17 class Profile; | |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 class DownloadManager; | 19 class DownloadManager; |
21 } | 20 } |
22 | 21 |
23 namespace extensions { | 22 namespace extensions { |
24 class ExtensionDownloadsEventRouter; | 23 class ExtensionDownloadsEventRouter; |
25 } | 24 } |
26 | 25 |
27 // Abstract base class for the download service; see DownloadServiceImpl for | 26 // Abstract base class for the download service; see DownloadServiceImpl for |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 67 |
69 // Returns false if at least one extension has disabled the shelf, true | 68 // Returns false if at least one extension has disabled the shelf, true |
70 // otherwise. | 69 // otherwise. |
71 virtual bool IsShelfEnabled() = 0; | 70 virtual bool IsShelfEnabled() = 0; |
72 | 71 |
73 private: | 72 private: |
74 DISALLOW_COPY_AND_ASSIGN(DownloadService); | 73 DISALLOW_COPY_AND_ASSIGN(DownloadService); |
75 }; | 74 }; |
76 | 75 |
77 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ | 76 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ |
OLD | NEW |