OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |
| 6 #define COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |
| 7 |
| 8 #include "base/memory/weak_ptr.h" |
| 9 |
| 10 namespace wifi_sync { |
| 11 |
| 12 class WifiCredentialSyncableService; |
| 13 |
| 14 // Interface for platform-specific observers. Such observers monitor |
| 15 // changes to local WiFi network settings, and propagate those changes |
| 16 // to Chrome Sync. |
| 17 class WifiConfigObserver { |
| 18 public: |
| 19 virtual ~WifiConfigObserver() {} |
| 20 |
| 21 // Informs the observer that |syncable_service| is ready to accept |
| 22 // updates. |
| 23 virtual void StartSyncing( |
| 24 base::WeakPtr<WifiCredentialSyncableService> syncable_service) = 0; |
| 25 |
| 26 // Informs the delegate that it should no longer send updates. |
| 27 virtual void StopSyncing() = 0; |
| 28 }; |
| 29 |
| 30 } // namespace wifi_sync |
| 31 |
| 32 #endif // COMPONENTS_WIFI_SYNC_WIFI_CONFIG_OBSERVER_H_ |
OLD | NEW |