| 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_PROFILE_OBSERVER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 | 10 |
| 12 namespace chromeos { | 11 namespace chromeos { |
| 13 | 12 |
| 14 struct NetworkProfile; | 13 struct NetworkProfile; |
| 15 | 14 |
| 16 class NetworkProfileObserver { | 15 class NetworkProfileObserver { |
| 17 public: | 16 public: |
| 18 virtual void OnProfileAdded(const NetworkProfile& profile) = 0; | 17 virtual void OnProfileAdded(const NetworkProfile& profile) = 0; |
| 19 virtual void OnProfileRemoved(const NetworkProfile& profile) = 0; | 18 virtual void OnProfileRemoved(const NetworkProfile& profile) = 0; |
| 20 | 19 |
| 21 protected: | 20 protected: |
| 22 virtual ~NetworkProfileObserver() {} | 21 virtual ~NetworkProfileObserver() {} |
| 23 | 22 |
| 24 private: | 23 private: |
| 25 DISALLOW_ASSIGN(NetworkProfileObserver); | 24 DISALLOW_ASSIGN(NetworkProfileObserver); |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 } // namespace chromeos | 27 } // namespace chromeos |
| 29 | 28 |
| 30 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ | 29 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |
| OLD | NEW |