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

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

Issue 11618049: Cleanup: Remove unneeded browser_thread.h includes in contents. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 7 years, 11 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
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/downloads_dom_handler.h" 5 #include "chrome/browser/ui/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"
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/download/download_query.h" 28 #include "chrome/browser/download/download_query.h"
29 #include "chrome/browser/download/download_service.h" 29 #include "chrome/browser/download/download_service.h"
30 #include "chrome/browser/download/download_service_factory.h" 30 #include "chrome/browser/download/download_service_factory.h"
31 #include "chrome/browser/download/download_util.h" 31 #include "chrome/browser/download/download_util.h"
32 #include "chrome/browser/platform_util.h" 32 #include "chrome/browser/platform_util.h"
33 #include "chrome/browser/profiles/profile.h" 33 #include "chrome/browser/profiles/profile.h"
34 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 34 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
35 #include "chrome/browser/ui/webui/fileicon_source.h" 35 #include "chrome/browser/ui/webui/fileicon_source.h"
36 #include "chrome/common/time_format.h" 36 #include "chrome/common/time_format.h"
37 #include "chrome/common/url_constants.h" 37 #include "chrome/common/url_constants.h"
38 #include "content/public/browser/browser_thread.h"
38 #include "content/public/browser/download_item.h" 39 #include "content/public/browser/download_item.h"
39 #include "content/public/browser/user_metrics.h" 40 #include "content/public/browser/user_metrics.h"
40 #include "content/public/browser/web_contents.h" 41 #include "content/public/browser/web_contents.h"
41 #include "content/public/browser/web_ui.h" 42 #include "content/public/browser/web_ui.h"
42 #include "grit/generated_resources.h" 43 #include "grit/generated_resources.h"
43 #include "net/base/net_util.h" 44 #include "net/base/net_util.h"
44 #include "ui/gfx/image/image.h" 45 #include "ui/gfx/image/image.h"
45 46
46 #if !defined(OS_MACOSX)
47 #include "content/public/browser/browser_thread.h"
48 #endif
49
50 #if defined(OS_CHROMEOS) 47 #if defined(OS_CHROMEOS)
51 #include "chrome/browser/chromeos/extensions/file_manager_util.h" 48 #include "chrome/browser/chromeos/extensions/file_manager_util.h"
52 #endif 49 #endif
53 50
54 using content::BrowserContext; 51 using content::BrowserContext;
55 using content::BrowserThread; 52 using content::BrowserThread;
56 using content::UserMetricsAction; 53 using content::UserMetricsAction;
57 54
58 namespace { 55 namespace {
59 56
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 } 502 }
506 503
507 void DownloadsDOMHandler::CallDownloadsList(const base::ListValue& downloads) { 504 void DownloadsDOMHandler::CallDownloadsList(const base::ListValue& downloads) {
508 web_ui()->CallJavascriptFunction("downloadsList", downloads); 505 web_ui()->CallJavascriptFunction("downloadsList", downloads);
509 } 506 }
510 507
511 void DownloadsDOMHandler::CallDownloadUpdated( 508 void DownloadsDOMHandler::CallDownloadUpdated(
512 const base::ListValue& download_item) { 509 const base::ListValue& download_item) {
513 web_ui()->CallJavascriptFunction("downloadUpdated", download_item); 510 web_ui()->CallJavascriptFunction("downloadUpdated", download_item);
514 } 511 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/download/download_item_mac.mm ('k') | content/browser/android/content_video_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698