| 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 #ifndef UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 5 #ifndef UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
| 6 #define UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 6 #define UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class UI_CHROMEOS_EXPORT NetworkConnect { | 23 class UI_CHROMEOS_EXPORT NetworkConnect { |
| 24 public: | 24 public: |
| 25 class Delegate { | 25 class Delegate { |
| 26 public: | 26 public: |
| 27 // Shows UI to configure or activate the network specified by |network_id|, | 27 // Shows UI to configure or activate the network specified by |network_id|, |
| 28 // which may include showing Payment or Portal UI when appropriate. | 28 // which may include showing Payment or Portal UI when appropriate. |
| 29 virtual void ShowNetworkConfigure(const std::string& network_id) = 0; | 29 virtual void ShowNetworkConfigure(const std::string& network_id) = 0; |
| 30 | 30 |
| 31 // Shows the settings related to network. If |network_id| is not empty, | 31 // Shows the settings related to network. If |network_id| is not empty, |
| 32 // show the settings for that network. | 32 // show the settings for that network. |
| 33 virtual void ShowNetworkSettings(const std::string& network_id) = 0; | 33 virtual void ShowNetworkSettingsForGuid(const std::string& network_id) = 0; |
| 34 | 34 |
| 35 // Shows UI to enroll the network specified by |network_id| if appropriate | 35 // Shows UI to enroll the network specified by |network_id| if appropriate |
| 36 // and returns true, otherwise returns false. | 36 // and returns true, otherwise returns false. |
| 37 virtual bool ShowEnrollNetwork(const std::string& network_id) = 0; | 37 virtual bool ShowEnrollNetwork(const std::string& network_id) = 0; |
| 38 | 38 |
| 39 // Shows UI to unlock a mobile sim. | 39 // Shows UI to unlock a mobile sim. |
| 40 virtual void ShowMobileSimDialog() = 0; | 40 virtual void ShowMobileSimDialog() = 0; |
| 41 | 41 |
| 42 // Shows UI to setup a mobile network. | 42 // Shows UI to setup a mobile network. |
| 43 virtual void ShowMobileSetupDialog(const std::string& service_path) = 0; | 43 virtual void ShowMobileSetupDialog(const std::string& service_path) = 0; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 virtual void CreateConfiguration(base::DictionaryValue* shill_properties, | 96 virtual void CreateConfiguration(base::DictionaryValue* shill_properties, |
| 97 bool shared) = 0; | 97 bool shared) = 0; |
| 98 | 98 |
| 99 // Returns the localized string for shill error string |error|. | 99 // Returns the localized string for shill error string |error|. |
| 100 virtual base::string16 GetShillErrorString( | 100 virtual base::string16 GetShillErrorString( |
| 101 const std::string& error, | 101 const std::string& error, |
| 102 const std::string& service_path) = 0; | 102 const std::string& service_path) = 0; |
| 103 | 103 |
| 104 // Shows the settings for the network specified by |service_path|. If empty, | 104 // Shows the settings for the network specified by |service_path|. If empty, |
| 105 // or no matching network exists, shows the general internet settings page. | 105 // or no matching network exists, shows the general internet settings page. |
| 106 virtual void ShowNetworkSettings(const std::string& service_path) = 0; | 106 virtual void ShowNetworkSettingsForPath(const std::string& service_path) = 0; |
| 107 | 107 |
| 108 protected: | 108 protected: |
| 109 NetworkConnect(); | 109 NetworkConnect(); |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 DISALLOW_COPY_AND_ASSIGN(NetworkConnect); | 112 DISALLOW_COPY_AND_ASSIGN(NetworkConnect); |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // ui | 115 } // ui |
| 116 | 116 |
| 117 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 117 #endif // UI_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
| OLD | NEW |