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

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

Issue 10868076: Only import certificates with Web trust from ONC if the user is managed and matches the enterprise … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebaesd Created 8 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1675 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 // network is not preferred. This should be called when the active profile 1686 // network is not preferred. This should be called when the active profile
1687 // changes. 1687 // changes.
1688 virtual void SwitchToPreferredNetwork() = 0; 1688 virtual void SwitchToPreferredNetwork() = 0;
1689 1689
1690 // Load networks from an Open Network Configuration blob. 1690 // Load networks from an Open Network Configuration blob.
1691 // If there was an error, this will return false and |error| will be set to 1691 // If there was an error, this will return false and |error| will be set to
1692 // the error message. 1692 // the error message.
1693 virtual bool LoadOncNetworks(const std::string& onc_blob, 1693 virtual bool LoadOncNetworks(const std::string& onc_blob,
1694 const std::string& passcode, 1694 const std::string& passcode,
1695 NetworkUIData::ONCSource source, 1695 NetworkUIData::ONCSource source,
1696 bool allow_web_trust_from_policy,
1696 std::string* error) = 0; 1697 std::string* error) = 0;
1697 1698
1698 // This sets the active network for the network type. Note: priority order 1699 // This sets the active network for the network type. Note: priority order
1699 // is unchanged (i.e. if a wifi network is set to active, but an ethernet 1700 // is unchanged (i.e. if a wifi network is set to active, but an ethernet
1700 // network is still active, active_network() will still return the ethernet 1701 // network is still active, active_network() will still return the ethernet
1701 // network). Other networks of the same type will become inactive. 1702 // network). Other networks of the same type will become inactive.
1702 // Used for testing. 1703 // Used for testing.
1703 virtual bool SetActiveNetwork(ConnectionType type, 1704 virtual bool SetActiveNetwork(ConnectionType type,
1704 const std::string& service_path) = 0; 1705 const std::string& service_path) = 0;
1705 1706
1706 // Factory function, creates a new instance and returns ownership. 1707 // Factory function, creates a new instance and returns ownership.
1707 // For normal usage, access the singleton via CrosLibrary::Get(). 1708 // For normal usage, access the singleton via CrosLibrary::Get().
1708 static NetworkLibrary* GetImpl(bool stub); 1709 static NetworkLibrary* GetImpl(bool stub);
1709 }; 1710 };
1710 1711
1711 } // namespace chromeos 1712 } // namespace chromeos
1712 1713
1713 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ 1714 #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_impl_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698