OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_ | |
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_ | |
7 | |
8 #include "base/basictypes.h" | |
9 #include "chrome/browser/sync/profile_sync_service_observer.h" | |
10 | |
11 class ProfileSyncService; | |
12 | |
13 // This class observe ProfileSyncService events and emit refresh notifications | |
Nicolas Zea
2014/12/18 20:55:25
grammar nit: observes and emits
shadi
2014/12/19 19:15:12
Done.
| |
14 // to other test profiles for any committed changes it observes. | |
15 // | |
16 // It register and unregisters in its constructor and destructor. This is | |
17 // intended to make it easy to manage with a scoped_ptr. | |
18 class P2PSyncRefresher : public ProfileSyncServiceObserver { | |
pval...(no longer on Chromium)
2014/12/18 01:47:25
The prefix of P2P immediately makes me think of th
shadi
2014/12/19 19:15:12
I wanted to capture in the name that we are sendin
pval...(no longer on Chromium)
2014/12/22 23:49:39
ok, fair enough, I am fine with this name
| |
19 public: | |
20 explicit P2PSyncRefresher(ProfileSyncService* sync_service); | |
21 ~P2PSyncRefresher() override; | |
Nicolas Zea
2014/12/18 20:55:25
Hmm, I'm pretty sure this is supposed to be virtua
shadi
2014/12/19 19:15:12
Done.
| |
22 | |
23 // Implementation of ProfileSyncServiceObserver | |
24 void OnStateChanged() override; | |
25 void OnSyncCycleCompleted() override; | |
26 | |
27 private: | |
28 ProfileSyncService* sync_service_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(P2PSyncRefresher); | |
31 }; | |
32 | |
33 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_ | |
OLD | NEW |