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 "chrome/browser/download/download_shelf.h" | 10 #include "chrome/browser/download/download_shelf.h" |
11 | 11 |
12 // An implementation of DownloadShelf for testing. | 12 // An implementation of DownloadShelf for testing. |
13 class TestDownloadShelf : public DownloadShelf { | 13 class TestDownloadShelf : public DownloadShelf { |
14 public: | 14 public: |
15 TestDownloadShelf(); | 15 TestDownloadShelf(); |
16 virtual ~TestDownloadShelf(); | 16 virtual ~TestDownloadShelf(); |
17 | 17 |
18 // DownloadShelf: | 18 // DownloadShelf: |
19 | 19 |
20 virtual bool IsShowing() const OVERRIDE; | 20 virtual bool IsShowing() const OVERRIDE; |
21 virtual bool IsClosing() const OVERRIDE; | 21 virtual bool IsClosing() const OVERRIDE; |
22 virtual Browser* browser() const OVERRIDE; | 22 virtual Browser* browser() const OVERRIDE; |
23 | 23 |
24 protected: | 24 protected: |
25 virtual void DoAddDownload(DownloadItemModel* download_model) OVERRIDE; | 25 virtual void DoAddDownload(content::DownloadItem* download) OVERRIDE; |
26 virtual void DoShow() OVERRIDE; | 26 virtual void DoShow() OVERRIDE; |
27 virtual void DoClose() OVERRIDE; | 27 virtual void DoClose() OVERRIDE; |
28 | 28 |
29 private: | 29 private: |
30 bool is_showing_; | 30 bool is_showing_; |
31 | 31 |
32 DISALLOW_COPY_AND_ASSIGN(TestDownloadShelf); | 32 DISALLOW_COPY_AND_ASSIGN(TestDownloadShelf); |
33 }; | 33 }; |
34 | 34 |
35 #endif // CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ | 35 #endif // CHROME_BROWSER_DOWNLOAD_TEST_DOWNLOAD_SHELF_H_ |
OLD | NEW |