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

Side by Side Diff: components/wifi/wifi_service.h

Issue 108603005: Update uses of Value in chromeos/, cloud_print/, components/, content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 5 #ifndef CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 6 #define CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 27 matching lines...) Expand all
38 virtual void UnInitialize() = 0; 38 virtual void UnInitialize() = 0;
39 39
40 // Create instance of |WiFiService| for normal use. 40 // Create instance of |WiFiService| for normal use.
41 static WiFiService* Create(); 41 static WiFiService* Create();
42 // Create instance of |WiFiService| for unit test use. 42 // Create instance of |WiFiService| for unit test use.
43 static WiFiService* CreateForTest(); 43 static WiFiService* CreateForTest();
44 44
45 // Get Properties of network identified by |network_guid|. Populates 45 // Get Properties of network identified by |network_guid|. Populates
46 // |properties| on success, |error| on failure. 46 // |properties| on success, |error| on failure.
47 virtual void GetProperties(const std::string& network_guid, 47 virtual void GetProperties(const std::string& network_guid,
48 DictionaryValue* properties, 48 base::DictionaryValue* properties,
49 std::string* error) = 0; 49 std::string* error) = 0;
50 50
51 // Gets the merged properties of the network with id |network_guid| from the 51 // Gets the merged properties of the network with id |network_guid| from the
52 // sources: User settings, shared settings, user policy, device policy and 52 // sources: User settings, shared settings, user policy, device policy and
53 // the currently active settings. Populates |managed_properties| on success, 53 // the currently active settings. Populates |managed_properties| on success,
54 // |error| on failure. 54 // |error| on failure.
55 virtual void GetManagedProperties(const std::string& network_guid, 55 virtual void GetManagedProperties(const std::string& network_guid,
56 DictionaryValue* managed_properties, 56 base::DictionaryValue* managed_properties,
57 std::string* error) = 0; 57 std::string* error) = 0;
58 58
59 // Get the cached read-only properties of the network with id |network_guid|. 59 // Get the cached read-only properties of the network with id |network_guid|.
60 // This is meant to be a higher performance function than |GetProperties|, 60 // This is meant to be a higher performance function than |GetProperties|,
61 // which requires a round trip to query the networking subsystem. It only 61 // which requires a round trip to query the networking subsystem. It only
62 // returns a subset of the properties returned by |GetProperties|. Populates 62 // returns a subset of the properties returned by |GetProperties|. Populates
63 // |properties| on success, |error| on failure. 63 // |properties| on success, |error| on failure.
64 virtual void GetState(const std::string& network_guid, 64 virtual void GetState(const std::string& network_guid,
65 DictionaryValue* properties, 65 base::DictionaryValue* properties,
66 std::string* error) = 0; 66 std::string* error) = 0;
67 67
68 // Set Properties of network identified by |network_guid|. Populates |error| 68 // Set Properties of network identified by |network_guid|. Populates |error|
69 // on failure. 69 // on failure.
70 virtual void SetProperties(const std::string& network_guid, 70 virtual void SetProperties(const std::string& network_guid,
71 scoped_ptr<base::DictionaryValue> properties, 71 scoped_ptr<base::DictionaryValue> properties,
72 std::string* error) = 0; 72 std::string* error) = 0;
73 73
74 // Creates a new network configuration from |properties|. If |shared| is true, 74 // Creates a new network configuration from |properties|. If |shared| is true,
75 // share this network configuration with other users. If a matching configured 75 // share this network configuration with other users. If a matching configured
76 // network already exists, this will fail and populate |error|. On success 76 // network already exists, this will fail and populate |error|. On success
77 // populates the |network_guid| of the new network. 77 // populates the |network_guid| of the new network.
78 virtual void CreateNetwork(bool shared, 78 virtual void CreateNetwork(bool shared,
79 scoped_ptr<base::DictionaryValue> properties, 79 scoped_ptr<base::DictionaryValue> properties,
80 std::string* network_guid, 80 std::string* network_guid,
81 std::string* error) = 0; 81 std::string* error) = 0;
82 82
83 // Get list of visible networks of |network_type| (one of onc::network_type). 83 // Get list of visible networks of |network_type| (one of onc::network_type).
84 // Populates |network_list| on success. 84 // Populates |network_list| on success.
85 virtual void GetVisibleNetworks(const std::string& network_type, 85 virtual void GetVisibleNetworks(const std::string& network_type,
86 ListValue* network_list) = 0; 86 base::ListValue* network_list) = 0;
87 87
88 // Request network scan. Send |NetworkListChanged| event on completion. 88 // Request network scan. Send |NetworkListChanged| event on completion.
89 virtual void RequestNetworkScan() = 0; 89 virtual void RequestNetworkScan() = 0;
90 90
91 // Start connect to network identified by |network_guid|. Populates |error| 91 // Start connect to network identified by |network_guid|. Populates |error|
92 // on failure. 92 // on failure.
93 virtual void StartConnect(const std::string& network_guid, 93 virtual void StartConnect(const std::string& network_guid,
94 std::string* error) = 0; 94 std::string* error) = 0;
95 95
96 // Start disconnect from network identified by |network_guid|. Populates 96 // Start disconnect from network identified by |network_guid|. Populates
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 typedef std::list<NetworkProperties> NetworkList; 153 typedef std::list<NetworkProperties> NetworkList;
154 154
155 private: 155 private:
156 DISALLOW_COPY_AND_ASSIGN(WiFiService); 156 DISALLOW_COPY_AND_ASSIGN(WiFiService);
157 }; 157 };
158 158
159 } // namespace wifi 159 } // namespace wifi
160 160
161 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 161 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698