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

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

Issue 8503018: Split DownloadItem into an ABC, an Impl, and a Mock. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: merge Created 9 years, 1 month 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_DOWNLOADS_DOM_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/scoped_callback_factory.h" 11 #include "base/memory/scoped_callback_factory.h"
12 #include "base/memory/scoped_ptr.h"
12 #include "content/browser/download/download_item.h" 13 #include "content/browser/download/download_item.h"
13 #include "content/browser/download/download_manager.h" 14 #include "content/browser/download/download_manager.h"
14 #include "content/browser/webui/web_ui.h" 15 #include "content/browser/webui/web_ui.h"
15 16
16 namespace base { 17 namespace base {
17 class ListValue; 18 class ListValue;
18 } 19 }
19 20
20 // The handler for Javascript messages related to the "downloads" view, 21 // The handler for Javascript messages related to the "downloads" view,
21 // also observes changes to the download manager. 22 // also observes changes to the download manager.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 // notification should follow close on the heels of such a change. 110 // notification should follow close on the heels of such a change.
110 typedef std::vector<DownloadItem*> OrderedDownloads; 111 typedef std::vector<DownloadItem*> OrderedDownloads;
111 OrderedDownloads download_items_; 112 OrderedDownloads download_items_;
112 113
113 base::ScopedCallbackFactory<DownloadsDOMHandler> callback_factory_; 114 base::ScopedCallbackFactory<DownloadsDOMHandler> callback_factory_;
114 115
115 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler); 116 DISALLOW_COPY_AND_ASSIGN(DownloadsDOMHandler);
116 }; 117 };
117 118
118 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_ 119 #endif // CHROME_BROWSER_UI_WEBUI_DOWNLOADS_DOM_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc ('k') | chrome/browser/ui/webui/downloads_dom_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698