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

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

Issue 7618048: Move the core download files to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 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/ui/webui/downloads_ui.h" 5 #include "chrome/browser/ui/webui/downloads_ui.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "base/threading/thread.h" 9 #include "base/threading/thread.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "chrome/browser/defaults.h" 11 #include "chrome/browser/defaults.h"
12 #include "chrome/browser/download/download_manager.h"
13 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 13 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
15 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h" 14 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
16 #include "chrome/browser/ui/webui/downloads_dom_handler.h" 15 #include "chrome/browser/ui/webui/downloads_dom_handler.h"
17 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
18 #include "content/browser/browser_thread.h" 17 #include "content/browser/browser_thread.h"
18 #include "content/browser/download/download_manager.h"
19 #include "content/browser/tab_contents/tab_contents.h" 19 #include "content/browser/tab_contents/tab_contents.h"
20 #include "grit/browser_resources.h" 20 #include "grit/browser_resources.h"
21 #include "grit/generated_resources.h" 21 #include "grit/generated_resources.h"
22 #include "grit/theme_resources.h" 22 #include "grit/theme_resources.h"
23 #include "grit/theme_resources_standard.h" 23 #include "grit/theme_resources_standard.h"
24 #include "ui/base/resource/resource_bundle.h" 24 #include "ui/base/resource/resource_bundle.h"
25 25
26 26
27 namespace { 27 namespace {
28 28
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 90 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
91 profile->GetChromeURLDataManager()->AddDataSource( 91 profile->GetChromeURLDataManager()->AddDataSource(
92 CreateDownloadsUIHTMLSource()); 92 CreateDownloadsUIHTMLSource());
93 } 93 }
94 94
95 // static 95 // static
96 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() { 96 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() {
97 return ResourceBundle::GetSharedInstance(). 97 return ResourceBundle::GetSharedInstance().
98 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON); 98 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON);
99 } 99 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698