| OLD | NEW |
| 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/chromeos/choose_mobile_network_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/choose_mobile_network_ui.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/string_piece.h" | 18 #include "base/strings/string_piece.h" |
| 19 #include "base/values.h" | 19 #include "base/values.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
| 22 #include "chrome/grit/browser_resources.h" |
| 22 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
| 23 #include "chromeos/network/device_state.h" | 24 #include "chromeos/network/device_state.h" |
| 24 #include "chromeos/network/network_device_handler.h" | 25 #include "chromeos/network/network_device_handler.h" |
| 25 #include "chromeos/network/network_event_log.h" | 26 #include "chromeos/network/network_event_log.h" |
| 26 #include "chromeos/network/network_state_handler.h" | 27 #include "chromeos/network/network_state_handler.h" |
| 27 #include "chromeos/network/network_state_handler_observer.h" | 28 #include "chromeos/network/network_state_handler_observer.h" |
| 29 #include "components/strings/grit/components_strings.h" |
| 28 #include "content/public/browser/web_contents.h" | 30 #include "content/public/browser/web_contents.h" |
| 29 #include "content/public/browser/web_ui.h" | 31 #include "content/public/browser/web_ui.h" |
| 30 #include "content/public/browser/web_ui_data_source.h" | 32 #include "content/public/browser/web_ui_data_source.h" |
| 31 #include "content/public/browser/web_ui_message_handler.h" | 33 #include "content/public/browser/web_ui_message_handler.h" |
| 32 #include "grit/browser_resources.h" | |
| 33 #include "grit/components_strings.h" | |
| 34 #include "third_party/cros_system_api/dbus/service_constants.h" | 34 #include "third_party/cros_system_api/dbus/service_constants.h" |
| 35 | 35 |
| 36 using content::WebContents; | 36 using content::WebContents; |
| 37 using content::WebUIMessageHandler; | 37 using content::WebUIMessageHandler; |
| 38 | 38 |
| 39 namespace chromeos { | 39 namespace chromeos { |
| 40 | 40 |
| 41 namespace { | 41 namespace { |
| 42 | 42 |
| 43 // JS API callbacks names. | 43 // JS API callbacks names. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 : WebUIController(web_ui) { | 267 : WebUIController(web_ui) { |
| 268 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); | 268 ChooseMobileNetworkHandler* handler = new ChooseMobileNetworkHandler(); |
| 269 web_ui->AddMessageHandler(handler); | 269 web_ui->AddMessageHandler(handler); |
| 270 // Set up the "chrome://choose-mobile-network" source. | 270 // Set up the "chrome://choose-mobile-network" source. |
| 271 Profile* profile = Profile::FromWebUI(web_ui); | 271 Profile* profile = Profile::FromWebUI(web_ui); |
| 272 content::WebUIDataSource::Add( | 272 content::WebUIDataSource::Add( |
| 273 profile, CreateChooseMobileNetworkUIHTMLSource()); | 273 profile, CreateChooseMobileNetworkUIHTMLSource()); |
| 274 } | 274 } |
| 275 | 275 |
| 276 } // namespace chromeos | 276 } // namespace chromeos |
| OLD | NEW |