Index: components/wifi_sync/wifi_config_observer.h |
diff --git a/components/wifi_sync/wifi_config_observer.h b/components/wifi_sync/wifi_config_observer.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..499244df4ff464bc4dc664144c377157ebbcff66 |
--- /dev/null |
+++ b/components/wifi_sync/wifi_config_observer.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2015 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 COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |
+#define COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |
+ |
+#include "base/memory/weak_ptr.h" |
+ |
+namespace wifi_sync { |
+ |
+class WifiCredentialSyncableService; |
+ |
+// Interface for platform-specific observers. Such observers monitor |
+// changes to local WiFi network settings, and propagate those changes |
+// to Chrome Sync. |
+class WifiConfigObserver { |
+ public: |
+ virtual ~WifiConfigObserver() {} |
+ |
+ // Informs the observer that |syncable_service| is ready to accept |
+ // updates. |
+ virtual void StartSyncing( |
+ base::WeakPtr<WifiCredentialSyncableService> syncable_service) = 0; |
+ |
+ // Informs the delegate that it should no longer send updates. |
+ virtual void StopSyncing() = 0; |
+}; |
+ |
+} // namespace wifi_sync |
+ |
+#endif // COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |