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

Unified Diff: chromeos/network/shill_property_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 side-by-side diff with in-line comments
Download patch
Index: chromeos/network/shill_property_handler.h
diff --git a/chromeos/network/shill_property_handler.h b/chromeos/network/shill_property_handler.h
index 8b2cd42732217a63e9f855e211c72dc0b191ed65..d88ac28df1157137cd82c9c5ec90e3225afd696a 100644
--- a/chromeos/network/shill_property_handler.h
+++ b/chromeos/network/shill_property_handler.h
@@ -9,6 +9,7 @@
#include <map>
#include <set>
#include <string>
+#include <vector>
#include "base/memory/weak_ptr.h"
#include "chromeos/dbus/dbus_method_call_status.h"
@@ -122,6 +123,13 @@ class CHROMEOS_EXPORT ShillPropertyHandler
bool enabled,
const network_handler::ErrorCallback& error_callback);
+ // Asynchronously sets the prohibited state for every network technology
+ // listed in |technologies|. Note: Modifies Manager state. Calls
+ // |error_callback| on failure.
+ void SetProhibitedTechnologies(
+ const std::vector<std::string>& technologies,
+ const network_handler::ErrorCallback& error_callback);
+
// Sets the list of devices on which portal check is enabled.
void SetCheckPortalList(const std::string& check_portal_list);
@@ -214,6 +222,8 @@ class CHROMEOS_EXPORT ShillPropertyHandler
DBusMethodCallStatus call_status,
const base::DictionaryValue& properties);
+ void SetProhibitedTechnologiesEnforced(bool enforced);
+
// Pointer to containing class (owns this)
Listener* listener_;
@@ -237,6 +247,7 @@ class CHROMEOS_EXPORT ShillPropertyHandler
std::set<std::string> available_technologies_;
std::set<std::string> enabled_technologies_;
std::set<std::string> enabling_technologies_;
+ std::set<std::string> prohibited_technologies_;
std::set<std::string> uninitialized_technologies_;
DISALLOW_COPY_AND_ASSIGN(ShillPropertyHandler);
« no previous file with comments | « chromeos/network/prohibited_technologies_handler_unittest.cc ('k') | chromeos/network/shill_property_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698