| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CONFIGURATION_OBSERVER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_CONFIGURATION_OBSERVER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_OBSERVER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_CONFIGURATION_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 class DictionaryValue; | 13 class DictionaryValue; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace chromeos { | 16 namespace chromeos { |
| 17 | 17 |
| 18 struct NetworkConfiguration; | |
| 19 | |
| 20 // Observer class for network configuration events. | 18 // Observer class for network configuration events. |
| 21 class NetworkConfigurationObserver { | 19 class NetworkConfigurationObserver { |
| 22 public: | 20 public: |
| 23 // Indicates whether a configuration change is triggered by a user action, | 21 // Indicates whether a configuration change is triggered by a user action, |
| 24 // by an extension or by policy. | 22 // by an extension or by policy. |
| 25 enum Source { | 23 enum Source { |
| 26 // Triggered by a user action. | 24 // Triggered by a user action. |
| 27 SOURCE_USER_ACTION, | 25 SOURCE_USER_ACTION, |
| 28 // Triggered by an extension to install a configuration. | 26 // Triggered by an extension to install a configuration. |
| 29 SOURCE_EXTENSION_INSTALL, | 27 SOURCE_EXTENSION_INSTALL, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 protected: | 69 protected: |
| 72 virtual ~NetworkConfigurationObserver() {} | 70 virtual ~NetworkConfigurationObserver() {} |
| 73 | 71 |
| 74 private: | 72 private: |
| 75 DISALLOW_ASSIGN(NetworkConfigurationObserver); | 73 DISALLOW_ASSIGN(NetworkConfigurationObserver); |
| 76 }; | 74 }; |
| 77 | 75 |
| 78 } // namespace chromeos | 76 } // namespace chromeos |
| 79 | 77 |
| 80 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_OBSERVER_H_ | 78 #endif // CHROMEOS_NETWORK_NETWORK_CONFIGURATION_OBSERVER_H_ |
| OLD | NEW |