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

Side by Side Diff: chromeos/network/network_state_handler.h

Issue 1431563005: Handle prohibited technologies in device policy ONC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « chromeos/network/network_profile_handler.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 // Asynchronously sets the technology enabled property for |type|. Only 98 // Asynchronously sets the technology enabled property for |type|. Only
99 // NetworkTypePattern::Primitive, ::Mobile and ::Ethernet are supported. 99 // NetworkTypePattern::Primitive, ::Mobile and ::Ethernet are supported.
100 // Note: Modifies Manager state. Calls |error_callback| on failure. 100 // Note: Modifies Manager state. Calls |error_callback| on failure.
101 void SetTechnologyEnabled( 101 void SetTechnologyEnabled(
102 const NetworkTypePattern& type, 102 const NetworkTypePattern& type,
103 bool enabled, 103 bool enabled,
104 const network_handler::ErrorCallback& error_callback); 104 const network_handler::ErrorCallback& error_callback);
105 105
106 // Asynchronously sets the list of prohibited technologies. The accepted
107 // values are the shill network technology identifiers. See also
108 // chromeos::onc::Validator::ValidateGlobalNetworkConfiguration().
109 void SetProhibitedTechnologies(
110 const std::vector<std::string>& prohibited_technologies,
111 const network_handler::ErrorCallback& error_callback);
112
106 // Finds and returns a device state by |device_path| or NULL if not found. 113 // Finds and returns a device state by |device_path| or NULL if not found.
107 const DeviceState* GetDeviceState(const std::string& device_path) const; 114 const DeviceState* GetDeviceState(const std::string& device_path) const;
108 115
109 // Finds and returns a device state by |type|. Returns NULL if not found. 116 // Finds and returns a device state by |type|. Returns NULL if not found.
110 const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const; 117 const DeviceState* GetDeviceStateByType(const NetworkTypePattern& type) const;
111 118
112 // Returns true if any device of |type| is scanning. 119 // Returns true if any device of |type| is scanning.
113 bool GetScanningByType(const NetworkTypePattern& type) const; 120 bool GetScanningByType(const NetworkTypePattern& type) const;
114 121
115 // Finds and returns a network state by |service_path| or NULL if not found. 122 // Finds and returns a network state by |service_path| or NULL if not found.
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // Map of network specifiers to guids. Contains an entry for each 390 // Map of network specifiers to guids. Contains an entry for each
384 // NetworkState that is not saved in a profile. 391 // NetworkState that is not saved in a profile.
385 SpecifierGuidMap specifier_guid_map_; 392 SpecifierGuidMap specifier_guid_map_;
386 393
387 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); 394 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler);
388 }; 395 };
389 396
390 } // namespace chromeos 397 } // namespace chromeos
391 398
392 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ 399 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_
OLDNEW
« no previous file with comments | « chromeos/network/network_profile_handler.h ('k') | chromeos/network/network_state_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698