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

Unified Diff: components/wifi_sync/wifi_config_observer.h

Issue 1426393003: NOT FOR REVIEW Base URL: https://chromium.googlesource.com/chromium/src.git@submit-4.5-split-wcss
Patch Set: Created 5 years, 1 month 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: 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_
« no previous file with comments | « components/wifi_sync/wifi_config_delegate_chromeos_unittest.cc ('k') | components/wifi_sync/wifi_config_observer_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698