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

Unified Diff: chromeos/network/managed_network_configuration_handler.h

Issue 14566009: Add NetworkConnectionHandler class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert Associating Stub change for test Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/managed_network_configuration_handler.h
diff --git a/chromeos/network/managed_network_configuration_handler.h b/chromeos/network/managed_network_configuration_handler.h
index db7e47d3daaf6821bba9254ee3143b59ee55ee2c..295fd1e8aedc9798a60e79a0dbec32bf6994d182 100644
--- a/chromeos/network/managed_network_configuration_handler.h
+++ b/chromeos/network/managed_network_configuration_handler.h
@@ -25,6 +25,7 @@ class ListValue;
namespace chromeos {
class NetworkProfileHandler;
+class NetworkUIData;
// The ManagedNetworkConfigurationHandler class is used to create and configure
// networks in ChromeOS using ONC and takes care of network policies.
@@ -69,6 +70,12 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandler
// Initialize() must be called before this.
static ManagedNetworkConfigurationHandler* Get();
+ // Returns the NetworkUIData parsed from the UIData property of
+ // |shill_dictionary|. If parsing fails or the field doesn't exist, returns
+ // NULL.
+ static scoped_ptr<NetworkUIData> GetUIData(
+ const base::DictionaryValue& shill_dictionary);
+
// Provides the properties of the network with |service_path| to |callback|.
void GetProperties(
const std::string& service_path,
@@ -95,20 +102,6 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandler
const base::Closure& callback,
const network_handler::ErrorCallback& error_callback) const;
- // Initiates a connection with network that has |service_path|. |callback| is
- // called if the connection request was successfully handled. That doesn't
- // mean that the connection was successfully established.
- void Connect(const std::string& service_path,
- const base::Closure& callback,
- const network_handler::ErrorCallback& error_callback) const;
-
- // Initiates a disconnect with the network at |service_path|. |callback| is
- // called if the diconnect request was successfully handled. That doesn't mean
- // that the network is already diconnected.
- void Disconnect(const std::string& service_path,
- const base::Closure& callback,
- const network_handler::ErrorCallback& error_callback) const;
-
// Initially configures an unconfigured network with the given user settings
// and returns the new identifier to |callback| if successful. Fails if the
// network was already configured by a call to this function or because of a
« no previous file with comments | « chromeos/network/certificate_pattern_matcher.cc ('k') | chromeos/network/managed_network_configuration_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698