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

Side by Side Diff: chrome/utility/networking_private_handler.h

Issue 30753002: Move GetVisibleNetworks network type filtering to WiFiService interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_NETWORKING_PRIVATE_HANDLER_H_ 5 #ifndef CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
6 #define CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ 6 #define CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 void OnStartDisconnectSucceeded(int message_id, 87 void OnStartDisconnectSucceeded(int message_id,
88 const std::string& network_guid); 88 const std::string& network_guid);
89 89
90 // Request network scan. Does not wait for scan to complete. 90 // Request network scan. Does not wait for scan to complete.
91 void OnRequestNetworkScan(); 91 void OnRequestNetworkScan();
92 92
93 // Callback from |WiFiService| to report that network scan has succeded. 93 // Callback from |WiFiService| to report that network scan has succeded.
94 // Generates |NetworkListChanged| event based on current |network_list|. 94 // Generates |NetworkListChanged| event based on current |network_list|.
95 void OnNetworkScanSucceeded(const WiFiService::NetworkList& network_list); 95 void OnNetworkScanSucceeded(const WiFiService::NetworkList& network_list);
96 96
97 // Get current list of visible networks. 97 // Get current list of visible networks of certain type.
98 void OnGetVisibleNetworks(int message_id); 98 void OnGetVisibleNetworks(
99 int message_id,
100 const std::string& network_type);
99 101
100 // Callback from |WiFiService| to report list of visible networks. 102 // Callback from |WiFiService| to report list of visible networks.
101 void OnGetVisibleNetworksSucceeded( 103 void OnGetVisibleNetworksSucceeded(
102 int message_id, 104 int message_id,
103 const WiFiService::NetworkList& network_list); 105 const WiFiService::NetworkList& network_list);
104 106
105 // Send |NetworkListChanged| event with |network_guid_list|. 107 // Send |NetworkListChanged| event with |network_guid_list|.
106 void OnNetworkListChangedEvent( 108 void OnNetworkListChangedEvent(
107 const WiFiService::NetworkGuidList& network_guid_list); 109 const WiFiService::NetworkGuidList& network_guid_list);
108 110
109 // Send |NetworksChanged| event with |network_guid_list|. 111 // Send |NetworksChanged| event with |network_guid_list|.
110 void OnNetworksChangedEvent( 112 void OnNetworksChangedEvent(
111 const WiFiService::NetworkGuidList& network_guid_list); 113 const WiFiService::NetworkGuidList& network_guid_list);
112 114
113 // Platform-specific WiFi service. 115 // Platform-specific WiFi service.
114 scoped_ptr<wifi::WiFiService> wifi_service_; 116 scoped_ptr<wifi::WiFiService> wifi_service_;
115 117
116 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler); 118 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler);
117 }; 119 };
118 120
119 } // namespace chrome 121 } // namespace chrome
120 122
121 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ 123 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698