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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/active_downloads_ui.h
===================================================================
--- chrome/browser/ui/webui/active_downloads_ui.h (revision 89670)
+++ chrome/browser/ui/webui/active_downloads_ui.h (working copy)
@@ -7,6 +7,7 @@
#pragma once
#include <string>
+#include <vector>
#include "chrome/browser/history/history.h"
#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
@@ -15,6 +16,8 @@
class Browser;
class Profile;
+class DownloadItem;
+class ActiveDownloadsHandler;
class ActiveDownloadsUI : public HtmlDialogUI {
public:
@@ -23,7 +26,13 @@
static Browser* OpenPopup(Profile* profile);
static Browser* GetPopup(Profile* profile);
+ // For testing.
+ typedef std::vector<DownloadItem*> DownloadList;
+ const DownloadList& GetDownloads() const;
+
private:
+ ActiveDownloadsHandler* handler_;
+
DISALLOW_COPY_AND_ASSIGN(ActiveDownloadsUI);
};
« 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