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

Side by Side Diff: chrome/browser/webui/downloads_dom_handler.cc

Issue 6538053: WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/webui/downloads_dom_handler.h ('k') | chrome/browser/webui/downloads_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/dom_ui/downloads_dom_handler.h" 5 #include "chrome/browser/webui/downloads_dom_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/singleton.h" 12 #include "base/singleton.h"
13 #include "base/string_piece.h" 13 #include "base/string_piece.h"
14 #include "base/threading/thread.h" 14 #include "base/threading/thread.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "base/values.h" 16 #include "base/values.h"
17 #include "chrome/browser/browser_process.h" 17 #include "chrome/browser/browser_process.h"
18 #include "chrome/browser/browser_thread.h" 18 #include "chrome/browser/browser_thread.h"
19 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
20 #include "chrome/browser/dom_ui/fileicon_source.h"
21 #include "chrome/browser/download/download_history.h" 19 #include "chrome/browser/download/download_history.h"
22 #include "chrome/browser/download/download_item.h" 20 #include "chrome/browser/download/download_item.h"
23 #include "chrome/browser/download/download_util.h" 21 #include "chrome/browser/download/download_util.h"
24 #include "chrome/browser/metrics/user_metrics.h" 22 #include "chrome/browser/metrics/user_metrics.h"
25 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/tab_contents/tab_contents.h" 24 #include "chrome/browser/tab_contents/tab_contents.h"
25 #include "chrome/browser/webui/chrome_url_data_manager.h"
26 #include "chrome/browser/webui/fileicon_source.h"
27 #include "chrome/common/jstemplate_builder.h" 27 #include "chrome/common/jstemplate_builder.h"
28 #include "chrome/common/url_constants.h" 28 #include "chrome/common/url_constants.h"
29 #include "grit/browser_resources.h" 29 #include "grit/browser_resources.h"
30 #include "grit/generated_resources.h" 30 #include "grit/generated_resources.h"
31 31
32 namespace { 32 namespace {
33 33
34 // Maximum number of downloads to show. TODO(glen): Remove this and instead 34 // Maximum number of downloads to show. TODO(glen): Remove this and instead
35 // stuff the downloads down the pipe slowly. 35 // stuff the downloads down the pipe slowly.
36 static const int kMaxDownloads = 150; 36 static const int kMaxDownloads = 150;
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 return NULL; 240 return NULL;
241 } 241 }
242 242
243 DownloadItem* DownloadsDOMHandler::GetDownloadByValue(const ListValue* args) { 243 DownloadItem* DownloadsDOMHandler::GetDownloadByValue(const ListValue* args) {
244 int id; 244 int id;
245 if (ExtractIntegerValue(args, &id)) { 245 if (ExtractIntegerValue(args, &id)) {
246 return GetDownloadById(id); 246 return GetDownloadById(id);
247 } 247 }
248 return NULL; 248 return NULL;
249 } 249 }
OLDNEW
« no previous file with comments | « chrome/browser/webui/downloads_dom_handler.h ('k') | chrome/browser/webui/downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698