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 ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 5 #ifndef ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 6 #define ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "ui/gfx/native_widget_types.h" // gfx::NativeWindow | |
13 | |
14 namespace base { | |
15 class DictionaryValue; | |
16 } | |
12 | 17 |
13 namespace ash { | 18 namespace ash { |
14 namespace network_connect { | 19 namespace network_connect { |
15 | 20 |
pneubeck (no reviews)
2013/08/06 15:45:19
nit: maybe add a comment that, here, 'properties'
stevenjb
2013/08/06 20:23:55
Modified comments of specific methods.
| |
16 // Request a network connection and handle any errors and notifications. | 21 // Requests a network connection and handles any errors and notifications. |
17 ASH_EXPORT void ConnectToNetwork(const std::string& service_path); | 22 // |owning_window| is used to parent any UI on failure (e.g. for enrollment). |
pneubeck (no reviews)
2013/08/06 15:45:19
nite: not sure if 'enrollment' is self explanatory
stevenjb
2013/08/06 20:23:55
Done.
| |
23 ASH_EXPORT void ConnectToNetwork(const std::string& service_path, | |
24 gfx::NativeWindow owning_window); | |
25 | |
26 // Requests network activation and handles any errors and notifications. | |
27 ASH_EXPORT void ActivateCellular(const std::string& service_path); | |
28 | |
29 // Configures a network with |properties| then sends a connect request. | |
30 ASH_EXPORT void ConfigureNetworkAndConnect( | |
31 const std::string& service_path, | |
32 const base::DictionaryValue& properties); | |
33 | |
34 // Requests a new network configuration using |properties|. The profile used | |
35 // is determined by |shared|. | |
36 ASH_EXPORT void CreateConfigurationAndConnect(base::DictionaryValue* properties, | |
37 bool shared); | |
18 | 38 |
19 // Returns the localized string for shill error string |error|. | 39 // Returns the localized string for shill error string |error|. |
20 ASH_EXPORT base::string16 ErrorString(const std::string& error); | 40 ASH_EXPORT base::string16 ErrorString(const std::string& error); |
21 | 41 |
22 } // network_connect | 42 } // network_connect |
23 } // ash | 43 } // ash |
24 | 44 |
25 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H | 45 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H |
OLD | NEW |