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_TEST_DOWNLOAD_SHELF_H_ | 5 #ifndef CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ |
6 #define CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ | 6 #define CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 protected: | 34 protected: |
35 virtual void DoAddDownload(content::DownloadItem* download) OVERRIDE; | 35 virtual void DoAddDownload(content::DownloadItem* download) OVERRIDE; |
36 virtual void DoShow() OVERRIDE; | 36 virtual void DoShow() OVERRIDE; |
37 virtual void DoClose(CloseReason reason) OVERRIDE; | 37 virtual void DoClose(CloseReason reason) OVERRIDE; |
38 virtual base::TimeDelta GetTransientDownloadShowDelay() OVERRIDE; | 38 virtual base::TimeDelta GetTransientDownloadShowDelay() OVERRIDE; |
39 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; | 39 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; |
40 | 40 |
41 private: | 41 private: |
42 bool is_showing_; | 42 bool is_showing_; |
43 bool did_add_download_; | 43 bool did_add_download_; |
44 scoped_refptr<content::DownloadManager> download_manager_; | 44 content::DownloadManager* download_manager_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(TestDownloadShelf); | 46 DISALLOW_COPY_AND_ASSIGN(TestDownloadShelf); |
47 }; | 47 }; |
48 | 48 |
49 #endif // CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ | 49 #endif // CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ |
OLD | NEW |