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

Side by Side Diff: chrome/browser/chromeos/cros/network_library.h

Issue 7566015: Only show prefer network checkbox for networks stored on user profile. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1276 matching lines...) Expand 10 before | Expand all | Expand 10 after
1287 virtual NetworkIPConfigVector GetIPConfigs( 1287 virtual NetworkIPConfigVector GetIPConfigs(
1288 const std::string& device_path, 1288 const std::string& device_path,
1289 std::string* hardware_address, 1289 std::string* hardware_address,
1290 HardwareAddressFormat) = 0; 1290 HardwareAddressFormat) = 0;
1291 1291
1292 // Sets an IP config. This is called when user changes from dhcp to static 1292 // Sets an IP config. This is called when user changes from dhcp to static
1293 // or vice versa or when user changes the ip config info. 1293 // or vice versa or when user changes the ip config info.
1294 // If nothing is changed, this method does nothing. 1294 // If nothing is changed, this method does nothing.
1295 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0; 1295 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0;
1296 1296
1297 // This will connect to an preferred network if the currently connected
stevenjb 2011/08/03 21:37:52 nit: a preferred
Charlie Lee 2011/08/03 22:22:59 Done.
1298 // network is not preferred. This should be called when the active profile
1299 // changes.
1300 virtual void SwitchToPreferredNetworkIfAppropriate() = 0;
stevenjb 2011/08/03 21:37:52 personal nit: It seems to me that "IfAppropriate"
Charlie Lee 2011/08/03 22:22:59 Done.
1301
1297 // Factory function, creates a new instance and returns ownership. 1302 // Factory function, creates a new instance and returns ownership.
1298 // For normal usage, access the singleton via CrosLibrary::Get(). 1303 // For normal usage, access the singleton via CrosLibrary::Get().
1299 static NetworkLibrary* GetImpl(bool stub); 1304 static NetworkLibrary* GetImpl(bool stub);
1300 }; 1305 };
1301 1306
1302 } // namespace chromeos 1307 } // namespace chromeos
1303 1308
1304 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1309 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/cros/network_library.cc » ('j') | chrome/browser/chromeos/cros/network_library.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698