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

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

Issue 8883046: Show parse errors in the UI when loading ONC files. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
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 <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 1771 matching lines...) Expand 10 before | Expand all | Expand 10 after
1782 // or vice versa or when user changes the ip config info. 1782 // or vice versa or when user changes the ip config info.
1783 // If nothing is changed, this method does nothing. 1783 // If nothing is changed, this method does nothing.
1784 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0; 1784 virtual void SetIPConfig(const NetworkIPConfig& ipconfig) = 0;
1785 1785
1786 // This will connect to a preferred network if the currently connected 1786 // This will connect to a preferred network if the currently connected
1787 // network is not preferred. This should be called when the active profile 1787 // network is not preferred. This should be called when the active profile
1788 // changes. 1788 // changes.
1789 virtual void SwitchToPreferredNetwork() = 0; 1789 virtual void SwitchToPreferredNetwork() = 0;
1790 1790
1791 // Load networks from an Open Network Configuration blob. 1791 // Load networks from an Open Network Configuration blob.
1792 // If there was an error, this will return false and |error| will be set to
1793 // the error message.
1792 virtual bool LoadOncNetworks(const std::string& onc_blob, 1794 virtual bool LoadOncNetworks(const std::string& onc_blob,
1793 const std::string& passcode) = 0; 1795 const std::string& passcode,
1796 std::string* error) = 0;
1794 1797
1795 // This sets the active network for the network type. Note: priority order 1798 // This sets the active network for the network type. Note: priority order
1796 // is unchanged (i.e. if a wifi network is set to active, but an ethernet 1799 // is unchanged (i.e. if a wifi network is set to active, but an ethernet
1797 // network is still active, active_network() will still return the ethernet 1800 // network is still active, active_network() will still return the ethernet
1798 // network). Other networks of the same type will become inactive. 1801 // network). Other networks of the same type will become inactive.
1799 // Used for testing. 1802 // Used for testing.
1800 virtual bool SetActiveNetwork(ConnectionType type, 1803 virtual bool SetActiveNetwork(ConnectionType type,
1801 const std::string& service_path) = 0; 1804 const std::string& service_path) = 0;
1802 1805
1803 // Factory function, creates a new instance and returns ownership. 1806 // Factory function, creates a new instance and returns ownership.
1804 // For normal usage, access the singleton via CrosLibrary::Get(). 1807 // For normal usage, access the singleton via CrosLibrary::Get().
1805 static NetworkLibrary* GetImpl(bool stub); 1808 static NetworkLibrary* GetImpl(bool stub);
1806 }; 1809 };
1807 1810
1808 } // namespace chromeos 1811 } // namespace chromeos
1809 1812
1810 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1813 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_network_library.h ('k') | chrome/browser/chromeos/cros/network_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698