Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMEOS_NETWORK_PROHIBITED_TECHNOLOGIES_HANDLER_H_ | |
| 6 #define CHROMEOS_NETWORK_PROHIBITED_TECHNOLOGIES_HANDLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "chromeos/chromeos_export.h" | |
| 12 #include "chromeos/login/login_state.h" | |
| 13 #include "chromeos/network/network_handler.h" | |
| 14 #include "chromeos/network/network_policy_observer.h" | |
| 15 | |
| 16 namespace chromeos { | |
| 17 | |
| 18 class CHROMEOS_EXPORT ProhibitedTechnologiesHandler | |
| 19 : public LoginState::Observer, | |
| 20 public NetworkPolicyObserver { | |
| 21 public: | |
| 22 ~ProhibitedTechnologiesHandler() override; | |
| 23 | |
| 24 // LoginState::Observer | |
| 25 void LoggedInStateChanged() override; | |
| 26 | |
| 27 // NetworkPolicyObserver | |
| 28 void PoliciesChanged(const std::string& userhash) override; | |
| 29 void PoliciesApplied(const std::string& userhash) override; | |
| 30 | |
| 31 void SetProhibitedTechnologies( | |
| 32 const std::vector<std::string>& prohibited_technologies); | |
| 33 std::vector<std::string> GetCurrentlyProhibitedTechnologies(); | |
| 34 | |
| 35 private: | |
| 36 friend class NetworkHandler; | |
| 37 friend class ProhibitedTechnologiesHandlerTest; | |
| 38 | |
| 39 ProhibitedTechnologiesHandler(); | |
| 40 | |
| 41 void Init( | |
| 42 ManagedNetworkConfigurationHandler* managed_network_configuration_handler, | |
| 43 NetworkStateHandler* network_state_handler); | |
| 44 | |
| 45 void EnforceProhibitedTechnologies(bool enforced); | |
| 46 | |
| 47 std::vector<std::string> prohibited_technologies_; | |
| 48 ManagedNetworkConfigurationHandler* managed_network_configuration_handler_; | |
| 49 NetworkStateHandler* network_state_handler_; | |
| 50 bool user_logged_in_; | |
| 51 bool user_policy_applied_; | |
|
stevenjb
2015/11/11 18:07:31
Empty line
| |
| 52 DISALLOW_COPY_AND_ASSIGN(ProhibitedTechnologiesHandler); | |
| 53 }; | |
| 54 | |
| 55 } // namespace chromeos | |
| 56 | |
| 57 #endif // CHROMEOS_NETWORK_PROHIBITED_TECHNOLOGIES_HANDLER_H_ | |
| OLD | NEW |