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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | components/wifi_sync/network_state_helper_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_ 5 #ifndef COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_
6 #define COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_ 6 #define COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromeos/network/network_handler_callbacks.h"
10 #include "components/wifi_sync/wifi_credential.h" 11 #include "components/wifi_sync/wifi_credential.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
14 class ManagedNetworkConfigurationHandler;
13 class NetworkStateHandler; 15 class NetworkStateHandler;
14 } 16 }
15 17
16 namespace wifi_sync { 18 namespace wifi_sync {
17 19
20 // Adds a local network configuration entry for a WiFi network using
21 // the properties of |wifi_credential|. The network configuration
22 // entry is added to the Shill profile for |user_hash|. If the entry
23 // already exists, the call fails. The call always completes
24 // asynchronously, invoking |success_callback| or |error_callback| as
25 // appropriate.
26 void CreateWifiNetworkInShillUserProfile(
27 chromeos::ManagedNetworkConfigurationHandler* managed_net_config_handler,
28 const std::string& user_hash,
29 const WifiCredential& wifi_credential,
30 const chromeos::network_handler::StringResultCallback& success_callback,
31 const chromeos::network_handler::ErrorCallback& error_callback);
32
18 // Returns a platform-agnostic representation of the ChromeOS network 33 // Returns a platform-agnostic representation of the ChromeOS network
19 // configuration state. The configuration state is filtered, so that 34 // configuration state. The configuration state is filtered, so that
20 // only items related to ChromeOS |shill_profile_path| are returned. 35 // only items related to ChromeOS |shill_profile_path| are returned.
21 WifiCredential::CredentialSet GetWifiCredentialsForShillProfile( 36 WifiCredential::CredentialSet GetWifiCredentialsForShillProfile(
22 chromeos::NetworkStateHandler* network_state_handler, 37 chromeos::NetworkStateHandler* network_state_handler,
23 const std::string& shill_profile_path); 38 const std::string& shill_profile_path);
24 39
25 } // namespace wifi_sync 40 } // namespace wifi_sync
26 41
27 #endif // COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_ 42 #endif // COMPONENTS_WIFI_SYNC_NETWORK_STATE_HELPER_CHROMEOS_H_
OLDNEW
« 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