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

Side by Side Diff: chrome/browser/download/download_core_service_impl.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_IMPL_H_ 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CORE_SERVICE_IMPL_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_IMPL_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CORE_SERVICE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "chrome/browser/download/download_service.h" 12 #include "chrome/browser/download/download_core_service.h"
13 #include "components/keyed_service/core/keyed_service.h" 13 #include "components/keyed_service/core/keyed_service.h"
14 #include "extensions/features/features.h" 14 #include "extensions/features/features.h"
15 15
16 class ChromeDownloadManagerDelegate; 16 class ChromeDownloadManagerDelegate;
17 class DownloadHistory; 17 class DownloadHistory;
18 class DownloadUIController; 18 class DownloadUIController;
19 class ExtensionDownloadsEventRouter; 19 class ExtensionDownloadsEventRouter;
20 class Profile; 20 class Profile;
21 21
22 namespace content { 22 namespace content {
23 class DownloadManager; 23 class DownloadManager;
24 } 24 }
25 25
26 namespace extensions { 26 namespace extensions {
27 class ExtensionDownloadsEventRouter; 27 class ExtensionDownloadsEventRouter;
28 } 28 }
29 29
30 // Owning class for ChromeDownloadManagerDelegate. 30 // Owning class for ChromeDownloadManagerDelegate.
31 class DownloadServiceImpl : public DownloadService { 31 class DownloadCoreServiceImpl : public DownloadCoreService {
32 public: 32 public:
33 explicit DownloadServiceImpl(Profile* profile); 33 explicit DownloadCoreServiceImpl(Profile* profile);
34 ~DownloadServiceImpl() override; 34 ~DownloadCoreServiceImpl() override;
35 35
36 // DownloadService 36 // DownloadCoreService
37 ChromeDownloadManagerDelegate* GetDownloadManagerDelegate() override; 37 ChromeDownloadManagerDelegate* GetDownloadManagerDelegate() override;
38 DownloadHistory* GetDownloadHistory() override; 38 DownloadHistory* GetDownloadHistory() override;
39 #if BUILDFLAG(ENABLE_EXTENSIONS) 39 #if BUILDFLAG(ENABLE_EXTENSIONS)
40 extensions::ExtensionDownloadsEventRouter* GetExtensionEventRouter() override; 40 extensions::ExtensionDownloadsEventRouter* GetExtensionEventRouter() override;
41 #endif 41 #endif
42 bool HasCreatedDownloadManager() override; 42 bool HasCreatedDownloadManager() override;
43 int NonMaliciousDownloadCount() const override; 43 int NonMaliciousDownloadCount() const override;
44 void CancelDownloads() override; 44 void CancelDownloads() override;
45 void SetDownloadManagerDelegateForTesting( 45 void SetDownloadManagerDelegateForTesting(
46 std::unique_ptr<ChromeDownloadManagerDelegate> delegate) override; 46 std::unique_ptr<ChromeDownloadManagerDelegate> delegate) override;
(...skipping 28 matching lines...) Expand all
75 // The ExtensionDownloadsEventRouter dispatches download creation, change, and 75 // The ExtensionDownloadsEventRouter dispatches download creation, change, and
76 // erase events to extensions. Like ChromeDownloadManagerDelegate, it's a 76 // erase events to extensions. Like ChromeDownloadManagerDelegate, it's a
77 // chrome-level concept and its lifetime should match DownloadManager. There 77 // chrome-level concept and its lifetime should match DownloadManager. There
78 // should be a separate EDER for on-record and off-record managers. 78 // should be a separate EDER for on-record and off-record managers.
79 // There does not appear to be a separate ExtensionSystem for on-record and 79 // There does not appear to be a separate ExtensionSystem for on-record and
80 // off-record profiles, so ExtensionSystem cannot own the EDER. 80 // off-record profiles, so ExtensionSystem cannot own the EDER.
81 std::unique_ptr<extensions::ExtensionDownloadsEventRouter> 81 std::unique_ptr<extensions::ExtensionDownloadsEventRouter>
82 extension_event_router_; 82 extension_event_router_;
83 #endif 83 #endif
84 84
85 DISALLOW_COPY_AND_ASSIGN(DownloadServiceImpl); 85 DISALLOW_COPY_AND_ASSIGN(DownloadCoreServiceImpl);
86 }; 86 };
87 87
88 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_IMPL_H_ 88 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_CORE_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698