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

Unified Diff: components/wifi_sync/network_state_helper_chromeos.h

Issue 831693005: wifi_sync: add function to create a network in Shill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.0-wifi-security-class
Patch Set: rename managed_net_config_handler Created 5 years, 11 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
« no previous file with comments | « no previous file | components/wifi_sync/network_state_helper_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/wifi_sync/network_state_helper_chromeos.h
diff --git a/components/wifi_sync/network_state_helper_chromeos.h b/components/wifi_sync/network_state_helper_chromeos.h
index 5163ee3e105d90fdeff1b031b77191a7ba27940d..33ae018a2c8589b03cdfabf94b4536086a4deb7a 100644
--- a/components/wifi_sync/network_state_helper_chromeos.h
+++ b/components/wifi_sync/network_state_helper_chromeos.h
@@ -7,14 +7,29 @@
#include <string>
+#include "chromeos/network/network_handler_callbacks.h"
#include "components/wifi_sync/wifi_credential.h"
namespace chromeos {
+class ManagedNetworkConfigurationHandler;
class NetworkStateHandler;
}
namespace wifi_sync {
+// Adds a local network configuration entry for a WiFi network using
+// the properties of |wifi_credential|. The network configuration
+// entry is added to the Shill profile for |user_hash|. If the entry
+// already exists, the call fails. The call always completes
+// asynchronously, invoking |success_callback| or |error_callback| as
+// appropriate.
+void CreateWifiNetworkInShillUserProfile(
+ chromeos::ManagedNetworkConfigurationHandler* managed_net_config_handler,
+ const std::string& user_hash,
+ const WifiCredential& wifi_credential,
+ const chromeos::network_handler::StringResultCallback& success_callback,
+ const chromeos::network_handler::ErrorCallback& error_callback);
+
// Returns a platform-agnostic representation of the ChromeOS network
// configuration state. The configuration state is filtered, so that
// only items related to ChromeOS |shill_profile_path| are returned.
« no previous file with comments | « no previous file | components/wifi_sync/network_state_helper_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698