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" |
11 | 11 |
12 class ProfileSyncService; | 12 class ProfileSyncService; |
13 | 13 |
14 namespace invalidation { | 14 namespace invalidation { |
15 class P2PInvalidationService; | 15 class P2PInvalidationService; |
16 }; | 16 }; |
17 | 17 |
18 // This class links the ProfileSyncService to a P2PInvalidationService. | 18 // This class links the ProfileSyncService to a P2PInvalidationService. |
19 // | 19 // |
20 // It will observe ProfileSyncService events and emit invalidation events for | 20 // It will observe ProfileSyncService events and emit invalidation events for |
(...skipping 13 matching lines...) Expand all Loading... |
34 void OnSyncCycleCompleted() override; | 34 void OnSyncCycleCompleted() override; |
35 | 35 |
36 private: | 36 private: |
37 ProfileSyncService* sync_service_; | 37 ProfileSyncService* sync_service_; |
38 invalidation::P2PInvalidationService* invalidation_service_; | 38 invalidation::P2PInvalidationService* invalidation_service_; |
39 | 39 |
40 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationForwarder); | 40 DISALLOW_COPY_AND_ASSIGN(P2PInvalidationForwarder); |
41 }; | 41 }; |
42 | 42 |
43 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ | 43 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_INVALIDATION_FORWARDER_H_ |
OLD | NEW |