Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(630)

Side by Side Diff: chrome/browser/download/download_core_service.h

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CORE_SERVICE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CORE_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 17
18 namespace content { 18 namespace content {
19 class DownloadManager; 19 class DownloadManager;
20 } 20 }
21 21
22 namespace extensions { 22 namespace extensions {
23 class ExtensionDownloadsEventRouter; 23 class ExtensionDownloadsEventRouter;
24 } 24 }
25 25
26 // Abstract base class for the download service; see DownloadServiceImpl for 26 // Abstract base class for the download core service; see
27 // implementation. 27 // DownloadCoreServiceImpl for implementation.
28 class DownloadService : public KeyedService { 28 class DownloadCoreService : public KeyedService {
29 public: 29 public:
30 DownloadService(); 30 DownloadCoreService();
31 ~DownloadService() override; 31 ~DownloadCoreService() override;
32 32
33 // Get the download manager delegate, creating it if it doesn't already exist. 33 // Get the download manager delegate, creating it if it doesn't already exist.
34 virtual ChromeDownloadManagerDelegate* GetDownloadManagerDelegate() = 0; 34 virtual ChromeDownloadManagerDelegate* GetDownloadManagerDelegate() = 0;
35 35
36 // Get the interface to the history system. Returns NULL if profile is 36 // Get the interface to the history system. Returns NULL if profile is
37 // incognito or if the DownloadManager hasn't been created yet or if there is 37 // incognito or if the DownloadManager hasn't been created yet or if there is
38 // no HistoryService for profile. Virtual for testing. 38 // no HistoryService for profile. Virtual for testing.
39 virtual DownloadHistory* GetDownloadHistory() = 0; 39 virtual DownloadHistory* GetDownloadHistory() = 0;
40 40
41 #if BUILDFLAG(ENABLE_EXTENSIONS) 41 #if BUILDFLAG(ENABLE_EXTENSIONS)
(...skipping 21 matching lines...) Expand all
63 // its DownloadManager. Takes ownership of |delegate|, and destroys 63 // its DownloadManager. Takes ownership of |delegate|, and destroys
64 // the previous delegate. For testing. 64 // the previous delegate. For testing.
65 virtual void SetDownloadManagerDelegateForTesting( 65 virtual void SetDownloadManagerDelegateForTesting(
66 std::unique_ptr<ChromeDownloadManagerDelegate> delegate) = 0; 66 std::unique_ptr<ChromeDownloadManagerDelegate> delegate) = 0;
67 67
68 // 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
69 // otherwise. 69 // otherwise.
70 virtual bool IsShelfEnabled() = 0; 70 virtual bool IsShelfEnabled() = 0;
71 71
72 private: 72 private:
73 DISALLOW_COPY_AND_ASSIGN(DownloadService); 73 DISALLOW_COPY_AND_ASSIGN(DownloadCoreService);
74 }; 74 };
75 75
76 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ 76 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CORE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698