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

Side by Side Diff: chrome/browser/sync/engine/sync_scheduler.h

Issue 9372051: Don't retry failed attempts to poll sync server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync/engine/sync_scheduler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // A class to schedule syncer tasks intelligently. 5 // A class to schedule syncer tasks intelligently.
6 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ 6 #ifndef CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_
7 #define CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ 7 #define CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_
8 #pragma once 8 #pragma once
9 9
10 #include <string> 10 #include <string>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest, 190 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
191 SaveConfigurationWhileThrottled); 191 SaveConfigurationWhileThrottled);
192 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest, 192 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
193 SaveNudgeWhileThrottled); 193 SaveNudgeWhileThrottled);
194 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest, 194 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
195 ContinueClearUserDataUnderAllCircumstances); 195 ContinueClearUserDataUnderAllCircumstances);
196 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest, 196 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
197 ContinueCanaryJobConfig); 197 ContinueCanaryJobConfig);
198 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest, 198 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerWhiteboxTest,
199 ContinueNudgeWhileExponentialBackOff); 199 ContinueNudgeWhileExponentialBackOff);
200 FRIEND_TEST_ALL_PREFIXES(SyncSchedulerTest, TransientPollFailure);
200 201
201 // A component used to get time delays associated with exponential backoff. 202 // A component used to get time delays associated with exponential backoff.
202 // Encapsulated into a class to facilitate testing. 203 // Encapsulated into a class to facilitate testing.
203 class DelayProvider { 204 class DelayProvider {
204 public: 205 public:
205 DelayProvider(); 206 DelayProvider();
206 virtual base::TimeDelta GetDelay(const base::TimeDelta& last_delay); 207 virtual base::TimeDelta GetDelay(const base::TimeDelta& last_delay);
207 virtual ~DelayProvider(); 208 virtual ~DelayProvider();
208 private: 209 private:
209 DISALLOW_COPY_AND_ASSIGN(DelayProvider); 210 DISALLOW_COPY_AND_ASSIGN(DelayProvider);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 scoped_ptr<Syncer> syncer_; 410 scoped_ptr<Syncer> syncer_;
410 411
411 scoped_ptr<sessions::SyncSessionContext> session_context_; 412 scoped_ptr<sessions::SyncSessionContext> session_context_;
412 413
413 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); 414 DISALLOW_COPY_AND_ASSIGN(SyncScheduler);
414 }; 415 };
415 416
416 } // namespace browser_sync 417 } // namespace browser_sync
417 418
418 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_ 419 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/engine/sync_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698