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

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

Issue 11673004: No need to pass DownloadItemModel ownership. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DownloadShelfContextMenu class cleanup and require GetMenuModel() to return non-NULL Created 7 years, 11 months 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_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_
OLDNEW
« no previous file with comments | « chrome/browser/download/download_shelf_context_menu.cc ('k') | chrome/browser/download/test_download_shelf.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698