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

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

Issue 11640007: Make the UI an observer of downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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_SERVICE_H_
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/profiles/profile_keyed_service.h" 14 #include "chrome/browser/profiles/profile_keyed_service.h"
15 15
16 class ChromeDownloadManagerDelegate; 16 class ChromeDownloadManagerDelegate;
17 class DownloadHistory; 17 class DownloadHistory;
18 class DownloadUIController;
18 class Profile; 19 class Profile;
19 20
20 namespace content { 21 namespace content {
21 class DownloadManager; 22 class DownloadManager;
22 } 23 }
23 24
24 // Owning class for ChromeDownloadManagerDelegate. 25 // Owning class for ChromeDownloadManagerDelegate.
25 class DownloadService : public ProfileKeyedService { 26 class DownloadService : public ProfileKeyedService {
26 public: 27 public:
27 explicit DownloadService(Profile* profile); 28 explicit DownloadService(Profile* profile);
(...skipping 30 matching lines...) Expand all
58 bool download_manager_created_; 59 bool download_manager_created_;
59 Profile* profile_; 60 Profile* profile_;
60 61
61 // ChromeDownloadManagerDelegate may be the target of callbacks from 62 // ChromeDownloadManagerDelegate may be the target of callbacks from
62 // the history service/DB thread and must be kept alive for those 63 // the history service/DB thread and must be kept alive for those
63 // callbacks. 64 // callbacks.
64 scoped_refptr<ChromeDownloadManagerDelegate> manager_delegate_; 65 scoped_refptr<ChromeDownloadManagerDelegate> manager_delegate_;
65 66
66 scoped_ptr<DownloadHistory> download_history_; 67 scoped_ptr<DownloadHistory> download_history_;
67 68
69 scoped_ptr<DownloadUIController> download_ui_;
70
68 DISALLOW_COPY_AND_ASSIGN(DownloadService); 71 DISALLOW_COPY_AND_ASSIGN(DownloadService);
69 }; 72 };
70 73
71 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_ 74 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698