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

Side by Side Diff: chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.cc

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/ui/webui/md_downloads/md_downloads_dom_handler.h" 5 #include "chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
16 #include "base/strings/string_piece.h" 16 #include "base/strings/string_piece.h"
17 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
18 #include "base/supports_user_data.h" 18 #include "base/supports_user_data.h"
19 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
20 #include "base/values.h" 20 #include "base/values.h"
21 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
22 #include "chrome/browser/download/download_danger_prompt.h" 22 #include "chrome/browser/download/download_danger_prompt.h"
23 #include "chrome/browser/download/download_history.h" 23 #include "chrome/browser/download/download_history.h"
24 #include "chrome/browser/download/download_item_model.h" 24 #include "chrome/browser/download/download_item_model.h"
25 #include "chrome/browser/download/download_prefs.h" 25 #include "chrome/browser/download/download_prefs.h"
26 #include "chrome/browser/download/download_query.h" 26 #include "chrome/browser/download/download_query.h"
27 #include "chrome/browser/download/download_service.h"
28 #include "chrome/browser/download/download_service_factory.h"
29 #include "chrome/browser/download/drag_download_item.h" 27 #include "chrome/browser/download/drag_download_item.h"
30 #include "chrome/browser/platform_util.h" 28 #include "chrome/browser/platform_util.h"
31 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/ui/webui/fileicon_source.h" 30 #include "chrome/browser/ui/webui/fileicon_source.h"
33 #include "chrome/common/chrome_switches.h" 31 #include "chrome/common/chrome_switches.h"
34 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
35 #include "chrome/common/url_constants.h" 33 #include "chrome/common/url_constants.h"
36 #include "components/prefs/pref_service.h" 34 #include "components/prefs/pref_service.h"
37 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
38 #include "content/public/browser/download_danger_type.h" 36 #include "content/public/browser/download_danger_type.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 452
455 void MdDownloadsDOMHandler::RemoveDownloadInArgs(const base::ListValue* args) { 453 void MdDownloadsDOMHandler::RemoveDownloadInArgs(const base::ListValue* args) {
456 content::DownloadItem* file = GetDownloadByValue(args); 454 content::DownloadItem* file = GetDownloadByValue(args);
457 if (!file) 455 if (!file)
458 return; 456 return;
459 457
460 DownloadVector downloads; 458 DownloadVector downloads;
461 downloads.push_back(file); 459 downloads.push_back(file);
462 RemoveDownloads(downloads); 460 RemoveDownloads(downloads);
463 } 461 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698