Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ | |
| 6 #define CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/basictypes.h" | |
| 11 #include "chromeos/network/network_profile.h" | |
| 12 | |
| 13 namespace chromeos { | |
| 14 | |
| 15 struct NetworkProfileState; | |
| 16 | |
| 17 class NetworkProfileObserver { | |
| 18 public: | |
| 19 NetworkProfileObserver() {} | |
|
stevenjb
2013/05/03 18:34:53
nit: as a pure virtual class, this doesn't really
pneubeck (no reviews)
2013/05/06 07:24:43
I think we found the sweet spot.
The disallowed as
| |
| 20 virtual void OnProfileAdded(const NetworkProfile& profile) = 0; | |
| 21 virtual void OnProfileRemoved(const NetworkProfile& profile) = 0; | |
| 22 | |
| 23 protected: | |
| 24 virtual ~NetworkProfileObserver() {} | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(NetworkProfileObserver); | |
| 28 }; | |
| 29 | |
| 30 | |
| 31 } // namespace chromeos | |
| 32 | |
| 33 #endif // CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ | |
| OLD | NEW |