| 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 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // device. flimflam recognizes the string "SETTINGS:" to specify | 74 // device. flimflam recognizes the string "SETTINGS:" to specify |
| 75 // authentication parameters. 'key_id=' indicates that the certificate is | 75 // authentication parameters. 'key_id=' indicates that the certificate is |
| 76 // stored in a pkcs#11 device. | 76 // stored in a pkcs#11 device. |
| 77 // See src/third_party/flimflam/files/doc/service-api.txt. | 77 // See src/third_party/flimflam/files/doc/service-api.txt. |
| 78 bool IsCertificateInPkcs11(const std::string& path); | 78 bool IsCertificateInPkcs11(const std::string& path); |
| 79 | 79 |
| 80 // Populates the ui with the details of the given device path. This forces | 80 // Populates the ui with the details of the given device path. This forces |
| 81 // an overlay to be displayed in the UI. | 81 // an overlay to be displayed in the UI. |
| 82 void PopulateDictionaryDetails(const chromeos::Network* net, | 82 void PopulateDictionaryDetails(const chromeos::Network* net, |
| 83 chromeos::NetworkLibrary* cros); | 83 chromeos::NetworkLibrary* cros); |
| 84 void PopulateWifiDetails(DictionaryValue* dictionary, | 84 void PopulateWifiDetails(const chromeos::WifiNetwork* wifi, |
| 85 const chromeos::WifiNetwork* wifi); | 85 DictionaryValue* dictionary); |
| 86 void PopulateCellularDetails(DictionaryValue* dictionary, | 86 void PopulateCellularDetails(const chromeos::CellularNetwork* cellular, |
| 87 const chromeos::CellularNetwork* | 87 DictionaryValue* dictionary); |
| 88 cellular); | 88 void SetActivationButtonVisibility(const chromeos::CellularNetwork* cellular, |
| 89 DictionaryValue* dictionary); |
| 89 | 90 |
| 90 // Converts CellularDataPlan structure into dictionary for JS. Formats plan | 91 // Converts CellularDataPlan structure into dictionary for JS. Formats plan |
| 91 // settings into human readable texts. | 92 // settings into human readable texts. |
| 92 DictionaryValue* CellularDataPlanToDictionary( | 93 DictionaryValue* CellularDataPlanToDictionary( |
| 93 const chromeos::CellularDataPlan* plan); | 94 const chromeos::CellularDataPlan* plan); |
| 94 // Creates the map of a network. | 95 // Creates the map of a network. |
| 95 ListValue* GetNetwork(const std::string& service_path, | 96 ListValue* GetNetwork(const std::string& service_path, |
| 96 const SkBitmap& icon, | 97 const SkBitmap& icon, |
| 97 const std::string& name, | 98 const std::string& name, |
| 98 bool connecting, | 99 bool connecting, |
| (...skipping 23 matching lines...) Expand all Loading... |
| 122 std::string active_network_; | 123 std::string active_network_; |
| 123 | 124 |
| 124 // A boolean flag of whether to use WebUI for connect UI. True to use WebUI | 125 // A boolean flag of whether to use WebUI for connect UI. True to use WebUI |
| 125 // and false to use Views dialogs. | 126 // and false to use Views dialogs. |
| 126 bool use_settings_ui_; | 127 bool use_settings_ui_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 129 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_INTERNET_OPTIONS_HANDLER_H_ |
| OLD | NEW |