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

Side by Side Diff: chrome/browser/sync/test/integration/p2p_sync_refresher.h

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
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_SYNC_REFRESHER_H_ 5 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_ 6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/sync/driver/sync_service_observer.h" 9 #include "components/sync/driver/sync_service_observer.h"
10 10
11 class Profile; 11 class Profile;
12
13 namespace browser_sync {
12 class ProfileSyncService; 14 class ProfileSyncService;
15 } // namespace browser_sync
13 16
14 // This class observes ProfileSyncService events and emits refresh notifications 17 // This class observes ProfileSyncService events and emits refresh notifications
15 // to other test profiles for any committed changes it observes. 18 // to other test profiles for any committed changes it observes.
16 // 19 //
17 // It register and unregisters in its constructor and destructor. This is 20 // It register and unregisters in its constructor and destructor. This is
18 // intended to make it easy to manage with a scoped_ptr. 21 // intended to make it easy to manage with a scoped_ptr.
19 class P2PSyncRefresher : public sync_driver::SyncServiceObserver { 22 class P2PSyncRefresher : public sync_driver::SyncServiceObserver {
20 public: 23 public:
21 P2PSyncRefresher(Profile* profile, ProfileSyncService* sync_service); 24 P2PSyncRefresher(Profile* profile,
25 browser_sync::ProfileSyncService* sync_service);
22 ~P2PSyncRefresher() override; 26 ~P2PSyncRefresher() override;
23 27
24 // Implementation of sync_driver::SyncServiceObserver 28 // Implementation of sync_driver::SyncServiceObserver
25 void OnStateChanged() override; 29 void OnStateChanged() override;
26 void OnSyncCycleCompleted() override; 30 void OnSyncCycleCompleted() override;
27 31
28 private: 32 private:
29 Profile* const profile_; // weak 33 Profile* const profile_; // weak
30 ProfileSyncService* sync_service_; // weak 34 browser_sync::ProfileSyncService* sync_service_; // weak
31 35
32 DISALLOW_COPY_AND_ASSIGN(P2PSyncRefresher); 36 DISALLOW_COPY_AND_ASSIGN(P2PSyncRefresher);
33 }; 37 };
34 38
35 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_ 39 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_P2P_SYNC_REFRESHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698