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_SHELF_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
9 #include "base/time/time.h" | 11 #include "base/time/time.h" |
10 #include "build/build_config.h" | 12 #include "build/build_config.h" |
11 | 13 |
12 class Browser; | 14 class Browser; |
13 | 15 |
14 namespace base { | 16 namespace base { |
15 class TimeTicks; | 17 class TimeTicks; |
16 } | 18 } |
17 | 19 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 virtual content::DownloadManager* GetDownloadManager(); | 133 virtual content::DownloadManager* GetDownloadManager(); |
132 | 134 |
133 private: | 135 private: |
134 // Show the download on the shelf immediately. Also displayes the download | 136 // Show the download on the shelf immediately. Also displayes the download |
135 // started animation if necessary. | 137 // started animation if necessary. |
136 void ShowDownload(content::DownloadItem* download); | 138 void ShowDownload(content::DownloadItem* download); |
137 | 139 |
138 // Similar to ShowDownload() but refers to the download using an ID. This | 140 // Similar to ShowDownload() but refers to the download using an ID. This |
139 // download should belong to the DownloadManager returned by | 141 // download should belong to the DownloadManager returned by |
140 // GetDownloadManager(). | 142 // GetDownloadManager(). |
141 void ShowDownloadById(int32 download_id); | 143 void ShowDownloadById(int32_t download_id); |
142 | 144 |
143 bool should_show_on_unhide_; | 145 bool should_show_on_unhide_; |
144 bool is_hidden_; | 146 bool is_hidden_; |
145 base::WeakPtrFactory<DownloadShelf> weak_ptr_factory_; | 147 base::WeakPtrFactory<DownloadShelf> weak_ptr_factory_; |
146 }; | 148 }; |
147 | 149 |
148 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ | 150 #endif // CHROME_BROWSER_DOWNLOAD_DOWNLOAD_SHELF_H_ |
OLD | NEW |