blob: 136ea65130798abe0a72156f14d15e203a054b22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
#define CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
#pragma once
#include <string>
#include <vector>
#include "chrome/browser/history/history.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
#include "chrome/browser/ui/webui/html_dialog_ui.h"
#include "net/base/directory_lister.h"
class Browser;
class Profile;
class DownloadItem;
class ActiveDownloadsHandler;
class ActiveDownloadsUI : public HtmlDialogUI {
public:
explicit ActiveDownloadsUI(TabContents* contents);
static Browser* OpenPopup(Profile* profile);
static Browser* GetPopup();
// For testing.
typedef std::vector<DownloadItem*> DownloadList;
const DownloadList& GetDownloads() const;
private:
ActiveDownloadsHandler* handler_;
DISALLOW_COPY_AND_ASSIGN(ActiveDownloadsUI);
};
#endif // CHROME_BROWSER_UI_WEBUI_ACTIVE_DOWNLOADS_UI_H_
|