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

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

Issue 9668039: Move active_downloads_ui.* to chrome/browser/ui/webui/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again Created 8 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
7 #pragma once
8
9 #include <string>
10 #include <vector>
11
12 #include "chrome/browser/history/history.h"
13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
14 #include "chrome/browser/ui/webui/html_dialog_ui.h"
15 #include "net/base/directory_lister.h"
16
17 class ActiveDownloadsHandler;
18 class Browser;
19 class Profile;
20
21 namespace content {
22 class DownloadItem;
23 }
24
25 class ActiveDownloadsUI : public HtmlDialogUI {
26 public:
27 explicit ActiveDownloadsUI(content::WebUI* web_ui);
28
29 static bool ShouldShowPopup(Profile* profile,
30 content::DownloadItem* download);
31 static Browser* OpenPopup(Profile* profile);
32 static Browser* GetPopup();
33
34 // For testing.
35 typedef std::vector<content::DownloadItem*> DownloadList;
36 const DownloadList& GetDownloads() const;
37
38 private:
39 ActiveDownloadsHandler* handler_;
40
41 DISALLOW_COPY_AND_ASSIGN(ActiveDownloadsUI);
42 };
43
44 #endif // CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_close_browsertest.cc ('k') | chrome/browser/ui/webui/active_downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698