Chromium Code Reviews| Index: chromeos/network/network_profile_observer.h |
| diff --git a/chromeos/network/network_profile_observer.h b/chromeos/network/network_profile_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..53fc2f139fbb0c2571558783201adee0e01ac2e1 |
| --- /dev/null |
| +++ b/chromeos/network/network_profile_observer.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |
| +#define CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/basictypes.h" |
| +#include "chromeos/network/network_profile.h" |
| + |
| +namespace chromeos { |
| + |
| +struct NetworkProfileState; |
| + |
| +class NetworkProfileObserver { |
| + public: |
| + NetworkProfileObserver() {} |
| + virtual ~NetworkProfileObserver() {} |
|
stevenjb
2013/04/26 21:00:49
nit: these could be protected instead of using DIS
pneubeck (no reviews)
2013/04/29 18:05:51
We should keep it consistent with other observers,
stevenjb
2013/04/30 17:42:47
NetworkStateHandlerObserver is not a pure virtual
pneubeck (no reviews)
2013/05/03 17:32:55
Ok. I lost you.
There are three things you mentio
|
| + |
| + virtual void OnProfileAdded(const NetworkProfile& profile) = 0; |
| + virtual void OnProfileRemoved(const NetworkProfile& profile) = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(NetworkProfileObserver); |
| +}; |
| + |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_ |