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

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

Issue 105153002: Implement Networking Private API CreateNetwork function on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix lint errors. Created 7 years 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/DEPS ('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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 NetworkProperties(); 123 NetworkProperties();
124 ~NetworkProperties(); 124 ~NetworkProperties();
125 125
126 std::string connection_state; 126 std::string connection_state;
127 std::string guid; 127 std::string guid;
128 std::string name; 128 std::string name;
129 std::string ssid; 129 std::string ssid;
130 std::string bssid; 130 std::string bssid;
131 std::string type; 131 std::string type;
132 std::string security; 132 std::string security;
133 std::string password;
stevenjb 2013/12/06 23:45:32 We should avoid storing wifi passwords (even in me
stevenjb 2013/12/09 18:06:34 If this is only used when configuring a network an
mef 2013/12/09 18:54:51 Done.
133 // WiFi Signal Strength. 0..100 134 // WiFi Signal Strength. 0..100
134 uint32 signal_strength; 135 uint32 signal_strength;
135 bool auto_connect; 136 bool auto_connect;
136 Frequency frequency; 137 Frequency frequency;
137 FrequencyList frequency_list; 138 FrequencyList frequency_list;
138 139
139 std::string json_extra; // Extra JSON properties for unit tests 140 std::string json_extra; // Extra JSON properties for unit tests
140 141
141 scoped_ptr<base::DictionaryValue> ToValue(bool network_list) const; 142 scoped_ptr<base::DictionaryValue> ToValue(bool network_list) const;
142 bool UpdateFromValue(const base::DictionaryValue& value); 143 bool UpdateFromValue(const base::DictionaryValue& value);
143 static std::string MacAddressAsString(const uint8 mac_as_int[6]); 144 static std::string MacAddressAsString(const uint8 mac_as_int[6]);
144 static bool OrderByType(const NetworkProperties& l, 145 static bool OrderByType(const NetworkProperties& l,
145 const NetworkProperties& r); 146 const NetworkProperties& r);
146 }; 147 };
147 148
148 typedef std::list<NetworkProperties> NetworkList; 149 typedef std::list<NetworkProperties> NetworkList;
149 150
150 private: 151 private:
151 DISALLOW_COPY_AND_ASSIGN(WiFiService); 152 DISALLOW_COPY_AND_ASSIGN(WiFiService);
152 }; 153 };
153 154
154 } // namespace wifi 155 } // namespace wifi
155 156
156 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 157 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW
« no previous file with comments | « components/wifi/DEPS ('k') | components/wifi/wifi_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698