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

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: Address codereview comments. 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void WiFiStartDisconnectSucceeded(int message_id, 88 void WiFiStartDisconnectSucceeded(int message_id,
89 const std::string& network_guid); 89 const std::string& network_guid);
90 90
91 // Request network scan. Does not wait for scan to complete. 91 // Request network scan. Does not wait for scan to complete.
92 void OnRequestNetworkScan(); 92 void OnRequestNetworkScan();
93 93
94 // Callback from |WiFiService| to report that network scan has succeded. 94 // Callback from |WiFiService| to report that network scan has succeded.
95 // Generates |NetworkListChanged| event based on current |network_list|. 95 // Generates |NetworkListChanged| event based on current |network_list|.
96 void WiFiNetworkScanSucceeded(const WiFiService::NetworkList& network_list); 96 void WiFiNetworkScanSucceeded(const WiFiService::NetworkList& network_list);
97 97
98 // Get current list of visible networks. 98 // Get current list of visible networks of certain type.
99 void OnGetVisibleNetworks(int message_id); 99 void OnGetVisibleNetworks(
100 int message_id,
101 const std::string& network_type);
100 102
101 // Callback from |WiFiService| to report list of visible networks. 103 // Callback from |WiFiService| to report list of visible networks.
102 void WiFiGetVisibleNetworksSucceeded( 104 void WiFiGetVisibleNetworksSucceeded(
103 int message_id, 105 int message_id,
104 const WiFiService::NetworkList& network_list); 106 const WiFiService::NetworkList& network_list);
105 107
106 // Send |NetworkListChanged| event with |network_guid_list|. 108 // Send |NetworkListChanged| event with |network_guid_list|.
107 void WiFiNetworkListChangedEvent( 109 void WiFiNetworkListChangedEvent(
108 const WiFiService::NetworkGuidList& network_guid_list); 110 const WiFiService::NetworkGuidList& network_guid_list);
109 111
110 // Send |NetworksChanged| event with |network_guid_list|. 112 // Send |NetworksChanged| event with |network_guid_list|.
111 void WiFiNetworksChangedEvent( 113 void WiFiNetworksChangedEvent(
112 const WiFiService::NetworkGuidList& network_guid_list); 114 const WiFiService::NetworkGuidList& network_guid_list);
113 115
114 // Platform-specific WiFi service. 116 // Platform-specific WiFi service.
115 scoped_ptr<wifi::WiFiService> wifi_service_; 117 scoped_ptr<wifi::WiFiService> wifi_service_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler); 119 DISALLOW_COPY_AND_ASSIGN(NetworkingPrivateHandler);
118 }; 120 };
119 121
120 } // namespace chrome 122 } // namespace chrome
121 123
122 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_ 124 #endif // CHROME_UTILITY_NETWORKING_PRIVATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/common/networking_private_messages.h ('k') | chrome/utility/networking_private_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698