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

Side by Side Diff: chrome/browser/ui/webui/active_downloads_ui.h

Issue 7241007: Support for testing by providing access to DownloadsList. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector>
10 11
11 #include "chrome/browser/history/history.h" 12 #include "chrome/browser/history/history.h"
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
13 #include "chrome/browser/ui/webui/html_dialog_ui.h" 14 #include "chrome/browser/ui/webui/html_dialog_ui.h"
14 #include "net/base/directory_lister.h" 15 #include "net/base/directory_lister.h"
15 16
16 class Browser; 17 class Browser;
17 class Profile; 18 class Profile;
19 class DownloadItem;
20 class ActiveDownloadsHandler;
18 21
19 class ActiveDownloadsUI : public HtmlDialogUI { 22 class ActiveDownloadsUI : public HtmlDialogUI {
20 public: 23 public:
21 explicit ActiveDownloadsUI(TabContents* contents); 24 explicit ActiveDownloadsUI(TabContents* contents);
22 25
23 static Browser* OpenPopup(Profile* profile); 26 static Browser* OpenPopup(Profile* profile);
24 static Browser* GetPopup(Profile* profile); 27 static Browser* GetPopup(Profile* profile);
25 28
29 // For testing.
30 typedef std::vector<DownloadItem*> DownloadList;
31 const DownloadList& GetDownloads() const;
32
26 private: 33 private:
34 ActiveDownloadsHandler* handler_;
35
27 DISALLOW_COPY_AND_ASSIGN(ActiveDownloadsUI); 36 DISALLOW_COPY_AND_ASSIGN(ActiveDownloadsUI);
28 }; 37 };
29 38
30 #endif // CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_ 39 #endif // CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/active_downloads_ui.cc » ('j') | chrome/browser/ui/webui/active_downloads_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698