Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: ash/system/chromeos/network/network_connect.h

Issue 21046008: Convert all connect code to use NetworkHandler instead of NetworkLibrary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NetworkConfigurationHandler::SetNetworkProfile Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 certificate
23 // enrollment). If NULL, the default window will be used.
24 ASH_EXPORT void ConnectToNetwork(const std::string& service_path,
25 gfx::NativeWindow owning_window);
26
27 // Requests network activation and handles any errors and notifications.
28 ASH_EXPORT void ActivateCellular(const std::string& service_path);
29
30 // Configures a network with a dictionary of Shill properties, then sends a
31 // connect request. The profile is set according to 'shared' if allowed.
32 ASH_EXPORT void ConfigureNetworkAndConnect(
33 const std::string& service_path,
34 const base::DictionaryValue& properties,
35 bool shared);
36
37 // Requests a new network configuration to be created from a dictionary of
38 // Shill properties. The profile used is determined by |shared|.
39 ASH_EXPORT void CreateConfigurationAndConnect(base::DictionaryValue* properties,
40 bool shared);
18 41
19 // Returns the localized string for shill error string |error|. 42 // Returns the localized string for shill error string |error|.
20 ASH_EXPORT base::string16 ErrorString(const std::string& error); 43 ASH_EXPORT base::string16 ErrorString(const std::string& error);
21 44
22 } // network_connect 45 } // network_connect
23 } // ash 46 } // ash
24 47
25 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H 48 #endif // ASH_SYSTEM_CHROMEOS_NETWORK_NETWORK_CONNECT_H
OLDNEW
« no previous file with comments | « no previous file | ash/system/chromeos/network/network_connect.cc » ('j') | ash/system/chromeos/network/network_connect.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698