| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_ui.h" | 5 #include "chrome/browser/dom_ui/downloads_ui.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/singleton.h" | 9 #include "base/singleton.h" |
| 10 #include "base/string_piece.h" | 10 #include "base/string_piece.h" |
| 11 #include "base/thread.h" | 11 #include "base/thread.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/browser/browser_thread.h" | 13 #include "chrome/browser/browser_thread.h" |
| 14 #include "chrome/browser/defaults.h" | 14 #include "chrome/browser/defaults.h" |
| 15 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" | 15 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" |
| 16 #include "chrome/browser/dom_ui/downloads_dom_handler.h" | 16 #include "chrome/browser/dom_ui/downloads_dom_handler.h" |
| 17 #include "chrome/browser/download/download_manager.h" | 17 #include "chrome/browser/download/download_manager.h" |
| 18 #include "chrome/browser/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 19 #include "chrome/common/jstemplate_builder.h" | 19 #include "chrome/common/jstemplate_builder.h" |
| 20 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "grit/browser_resources.h" | 21 #include "grit/browser_resources.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/theme_resources.h" | 23 #include "grit/theme_resources.h" |
| 24 | 24 |
| 25 namespace { | 25 namespace { |
| 26 | 26 |
| 27 /////////////////////////////////////////////////////////////////////////////// | 27 /////////////////////////////////////////////////////////////////////////////// |
| 28 // | 28 // |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 NewRunnableMethod(Singleton<ChromeURLDataManager>::get(), | 139 NewRunnableMethod(Singleton<ChromeURLDataManager>::get(), |
| 140 &ChromeURLDataManager::AddDataSource, | 140 &ChromeURLDataManager::AddDataSource, |
| 141 make_scoped_refptr(html_source))); | 141 make_scoped_refptr(html_source))); |
| 142 } | 142 } |
| 143 | 143 |
| 144 // static | 144 // static |
| 145 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() { | 145 RefCountedMemory* DownloadsUI::GetFaviconResourceBytes() { |
| 146 return ResourceBundle::GetSharedInstance(). | 146 return ResourceBundle::GetSharedInstance(). |
| 147 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON); | 147 LoadDataResourceBytes(IDR_DOWNLOADS_FAVICON); |
| 148 } | 148 } |
| OLD | NEW |