OLD | NEW |
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 "base/ref_counted_memory.h" | 5 #include "base/ref_counted_memory.h" |
6 #include "base/singleton.h" | 6 #include "base/singleton.h" |
7 #include "base/string_piece.h" | 7 #include "base/string_piece.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/browser_thread.h" | |
10 #include "chrome/browser/chromeos/cros/cros_library.h" | 9 #include "chrome/browser/chromeos/cros/cros_library.h" |
11 #include "chrome/browser/chromeos/cros/power_library.h" | 10 #include "chrome/browser/chromeos/cros/power_library.h" |
12 #include "chrome/browser/chromeos/webui/login/authenticator_facade.h" | 11 #include "chrome/browser/chromeos/webui/login/authenticator_facade.h" |
13 #include "chrome/browser/chromeos/webui/login/authenticator_facade_cros.h" | 12 #include "chrome/browser/chromeos/webui/login/authenticator_facade_cros.h" |
14 #include "chrome/browser/chromeos/webui/login/authenticator_facade_cros.h" | 13 #include "chrome/browser/chromeos/webui/login/authenticator_facade_cros.h" |
15 #include "chrome/browser/chromeos/webui/login/login_ui.h" | 14 #include "chrome/browser/chromeos/webui/login/login_ui.h" |
16 #include "chrome/browser/chromeos/webui/login/login_ui_helpers.h" | 15 #include "chrome/browser/chromeos/webui/login/login_ui_helpers.h" |
17 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/tab_contents/tab_contents.h" | |
19 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_window.h" | 18 #include "chrome/browser/ui/browser_window.h" |
21 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | 19 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
22 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 21 #include "content/browser/browser_thread.h" |
| 22 #include "content/browser/tab_contents/tab_contents.h" |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 //////////////////////////////////////////////////////////////////////////////// | 26 //////////////////////////////////////////////////////////////////////////////// |
27 // | 27 // |
28 // LoginUIHTMLSource | 28 // LoginUIHTMLSource |
29 // | 29 // |
30 //////////////////////////////////////////////////////////////////////////////// | 30 //////////////////////////////////////////////////////////////////////////////// |
31 | 31 |
32 LoginUIHTMLSource::LoginUIHTMLSource(MessageLoop* message_loop) | 32 LoginUIHTMLSource::LoginUIHTMLSource(MessageLoop* message_loop) |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 : WebUI(contents) { | 155 : WebUI(contents) { |
156 LoginUIHandler* handler = new LoginUIHandler(); | 156 LoginUIHandler* handler = new LoginUIHandler(); |
157 AddMessageHandler(handler->Attach(this)); | 157 AddMessageHandler(handler->Attach(this)); |
158 LoginUIHTMLSource* html_source = | 158 LoginUIHTMLSource* html_source = |
159 new LoginUIHTMLSource(MessageLoop::current()); | 159 new LoginUIHTMLSource(MessageLoop::current()); |
160 | 160 |
161 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 161 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
162 } | 162 } |
163 | 163 |
164 } // namespace chromeos | 164 } // namespace chromeos |
OLD | NEW |