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

Side by Side Diff: components/sync/engine_impl/sync_scheduler_impl.h

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 CANARY_PRIORITY 94 CANARY_PRIORITY
95 }; 95 };
96 96
97 enum PollAdjustType { 97 enum PollAdjustType {
98 // Restart the poll interval. 98 // Restart the poll interval.
99 FORCE_RESET, 99 FORCE_RESET,
100 // Restart the poll interval only if its length has changed. 100 // Restart the poll interval only if its length has changed.
101 UPDATE_INTERVAL, 101 UPDATE_INTERVAL,
102 }; 102 };
103 103
104 friend class SyncSchedulerTest; 104 friend class SyncSchedulerImplTest;
105 friend class SyncSchedulerWhiteboxTest; 105 friend class SyncSchedulerWhiteboxTest;
106 friend class SyncerTest; 106 friend class SyncerTest;
107 107
108 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, TransientPollFailure); 108 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, TransientPollFailure);
109 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, 109 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest,
110 ServerConnectionChangeDuringBackoff); 110 ServerConnectionChangeDuringBackoff);
111 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, 111 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest,
112 ConnectionChangeCanaryPreemptedByNudge); 112 ConnectionChangeCanaryPreemptedByNudge);
113 FRIEND_TEST_ALL_PREFIXES(BackoffTriggersSyncSchedulerTest, 113 FRIEND_TEST_ALL_PREFIXES(BackoffTriggersSyncSchedulerTest,
114 FailGetEncryptionKey); 114 FailGetEncryptionKey);
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 // A second factory specially for weak_handle_this_, to allow the handle 315 // A second factory specially for weak_handle_this_, to allow the handle
316 // to be const and alleviate threading concerns. 316 // to be const and alleviate threading concerns.
317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_; 317 base::WeakPtrFactory<SyncSchedulerImpl> weak_ptr_factory_for_weak_handle_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl); 319 DISALLOW_COPY_AND_ASSIGN(SyncSchedulerImpl);
320 }; 320 };
321 321
322 } // namespace syncer 322 } // namespace syncer
323 323
324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_ 324 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_worker_unittest.cc ('k') | components/sync/engine_impl/sync_scheduler_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698