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

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

Issue 88653002: Move GetVisibleNetworks network type filtering to WiFiService interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Toni's comments. 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/fake_wifi_service.cc ('k') | components/wifi/wifi_service_win.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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void GetProperties(const std::string& network_guid, 47 virtual void GetProperties(const std::string& network_guid,
48 DictionaryValue* properties, 48 DictionaryValue* properties,
49 std::string* error) = 0; 49 std::string* error) = 0;
50 50
51 // Set Properties of network identified by |network_guid|. Populates |error| 51 // Set Properties of network identified by |network_guid|. Populates |error|
52 // on failure. 52 // on failure.
53 virtual void SetProperties(const std::string& network_guid, 53 virtual void SetProperties(const std::string& network_guid,
54 scoped_ptr<base::DictionaryValue> properties, 54 scoped_ptr<base::DictionaryValue> properties,
55 std::string* error) = 0; 55 std::string* error) = 0;
56 56
57 // Get list of visible networks. Populates |network_list| on success. 57 // Get list of visible networks of |network_type| (one of onc::network_type).
58 virtual void GetVisibleNetworks(ListValue* network_list) = 0; 58 // Populates |network_list| on success.
59 virtual void GetVisibleNetworks(const std::string& network_type,
60 ListValue* network_list) = 0;
59 61
60 // Request network scan. Send |NetworkListChanged| event on completion. 62 // Request network scan. Send |NetworkListChanged| event on completion.
61 virtual void RequestNetworkScan() = 0; 63 virtual void RequestNetworkScan() = 0;
62 64
63 // Start connect to network identified by |network_guid|. Populates |error| 65 // Start connect to network identified by |network_guid|. Populates |error|
64 // on failure. 66 // on failure.
65 virtual void StartConnect(const std::string& network_guid, 67 virtual void StartConnect(const std::string& network_guid,
66 std::string* error) = 0; 68 std::string* error) = 0;
67 69
68 // Start disconnect from network identified by |network_guid|. Populates 70 // Start disconnect from network identified by |network_guid|. Populates
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 121
120 typedef std::list<NetworkProperties> NetworkList; 122 typedef std::list<NetworkProperties> NetworkList;
121 123
122 private: 124 private:
123 DISALLOW_COPY_AND_ASSIGN(WiFiService); 125 DISALLOW_COPY_AND_ASSIGN(WiFiService);
124 }; 126 };
125 127
126 } // namespace wifi 128 } // namespace wifi
127 129
128 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_ 130 #endif // CHROME_UTILITY_WIFI_WIFI_SERVICE_H_
OLDNEW
« no previous file with comments | « components/wifi/fake_wifi_service.cc ('k') | components/wifi/wifi_service_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698