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/chromeos/dom_ui/imageburner_ui.h" | 5 #include "chrome/browser/chromeos/dom_ui/imageburner_ui.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | |
8 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
9 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "base/i18n/rtl.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/singleton.h" | 12 #include "base/singleton.h" |
13 #include "base/string_util.h" | 13 #include "base/string_util.h" |
14 #include "base/task.h" | 14 #include "base/task.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/chrome_thread.h" | 17 #include "chrome/browser/chrome_thread.h" |
18 #include "chrome/browser/download/download_types.h" | 18 #include "chrome/browser/download/download_types.h" |
19 #include "chrome/browser/download/download_util.h" | 19 #include "chrome/browser/download/download_util.h" |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 ImageBurnHandler* handler = new ImageBurnHandler(contents); | 614 ImageBurnHandler* handler = new ImageBurnHandler(contents); |
615 AddMessageHandler((handler)->Attach(this)); | 615 AddMessageHandler((handler)->Attach(this)); |
616 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource(); | 616 ImageBurnUIHTMLSource* html_source = new ImageBurnUIHTMLSource(); |
617 ChromeThread::PostTask( | 617 ChromeThread::PostTask( |
618 ChromeThread::IO, FROM_HERE, | 618 ChromeThread::IO, FROM_HERE, |
619 NewRunnableMethod( | 619 NewRunnableMethod( |
620 Singleton<ChromeURLDataManager>::get(), | 620 Singleton<ChromeURLDataManager>::get(), |
621 &ChromeURLDataManager::AddDataSource, | 621 &ChromeURLDataManager::AddDataSource, |
622 make_scoped_refptr(html_source))); | 622 make_scoped_refptr(html_source))); |
623 } | 623 } |
OLD | NEW |