| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ |
| 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ | 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "components/sync/driver/sync_service_observer.h" | 10 #include "components/sync/driver/sync_service_observer.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 // It register and unregisters in its constructor and destructor. This is | 25 // It register and unregisters in its constructor and destructor. This is |
| 26 // intended to make it easy to manage with a scoped_ptr. | 26 // intended to make it easy to manage with a scoped_ptr. |
| 27 class P2PInvalidationForwarder : public syncer::SyncServiceObserver { | 27 class P2PInvalidationForwarder : public syncer::SyncServiceObserver { |
| 28 public: | 28 public: |
| 29 P2PInvalidationForwarder( | 29 P2PInvalidationForwarder( |
| 30 browser_sync::ProfileSyncService* sync_service, | 30 browser_sync::ProfileSyncService* sync_service, |
| 31 invalidation::P2PInvalidationService* invalidation_service); | 31 invalidation::P2PInvalidationService* invalidation_service); |
| 32 ~P2PInvalidationForwarder() override; | 32 ~P2PInvalidationForwarder() override; |
| 33 | 33 |
| 34 // Implementation of syncer::SyncServiceObserver | 34 // Implementation of syncer::SyncServiceObserver |
| 35 void OnStateChanged() override; | 35 void OnSyncCycleCompleted(syncer::SyncService* sync) override; |
| 36 void OnSyncCycleCompleted() override; | |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 browser_sync::ProfileSyncService* sync_service_; | 38 browser_sync::ProfileSyncService* sync_service_; |
| 40 invalidation::P2PInvalidationService* invalidation_service_; | 39 invalidation::P2PInvalidationService* invalidation_service_; |
| 41 | 40 |
| 42 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationForwarder); | 41 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationForwarder); |
| 43 }; | 42 }; |
| 44 | 43 |
| 45 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ | 44 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ |
| OLD | NEW |