Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: chromeos/network/network_profile_observer.h

Issue 13957012: Adding a NetworkProfileHandler used by ManagedNetworkConfigurationHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed one comment. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..90b148d4b68b642a3dc8ac49822ae96e192b023f
--- /dev/null
+++ b/chromeos/network/network_profile_observer.h
@@ -0,0 +1,33 @@
+// 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() {}
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
+ virtual void OnProfileAdded(const NetworkProfile& profile) = 0;
+ virtual void OnProfileRemoved(const NetworkProfile& profile) = 0;
+
+ protected:
+ virtual ~NetworkProfileObserver() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkProfileObserver);
+};
+
+
+} // namespace chromeos
+
+#endif // CHROMEOS_NETWORK_NETWORK_PROFILE_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698