OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_UI_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_CONTROLLER_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_CONTROLLER_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_CONTROLLER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 // other platforms the target of the notification is a Browser object. | 33 // other platforms the target of the notification is a Browser object. |
34 // | 34 // |
35 // Currently explicit delegates are only used for testing. | 35 // Currently explicit delegates are only used for testing. |
36 DownloadUIController(content::DownloadManager* manager, | 36 DownloadUIController(content::DownloadManager* manager, |
37 scoped_ptr<Delegate> delegate); | 37 scoped_ptr<Delegate> delegate); |
38 | 38 |
39 virtual ~DownloadUIController(); | 39 virtual ~DownloadUIController(); |
40 | 40 |
41 private: | 41 private: |
42 virtual void OnDownloadCreated(content::DownloadManager* manager, | 42 virtual void OnDownloadCreated(content::DownloadManager* manager, |
43 content::DownloadItem* item) OVERRIDE; | 43 content::DownloadItem* item) override; |
44 virtual void OnDownloadUpdated(content::DownloadManager* manager, | 44 virtual void OnDownloadUpdated(content::DownloadManager* manager, |
45 content::DownloadItem* item) OVERRIDE; | 45 content::DownloadItem* item) override; |
46 | 46 |
47 AllDownloadItemNotifier download_notifier_; | 47 AllDownloadItemNotifier download_notifier_; |
48 | 48 |
49 scoped_ptr<Delegate> delegate_; | 49 scoped_ptr<Delegate> delegate_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(DownloadUIController); | 51 DISALLOW_COPY_AND_ASSIGN(DownloadUIController); |
52 }; | 52 }; |
53 | 53 |
54 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_CONTROLLER_H_ | 54 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_UI_CONTROLLER_H_ |
OLD | NEW |