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

Side by Side Diff: chrome/browser/sync/retry_verifier.h

Issue 10700180: [Sync] Add sync_export.h (Step 1 for componentizing sync) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | sync/base/DEPS » ('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 #ifndef CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_ 5 #ifndef CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_
6 #define CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_ 6 #define CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_
7 7
8 #include "base/time.h" 8 #include "base/time.h"
9 9
10 // TODO(akalin): Move this to somewhere in sync/ and make
11 // sync/engine/polling_constants.h private.
12
10 namespace syncer { 13 namespace syncer {
11 namespace sessions { 14 namespace sessions {
12 class SyncSessionSnapshot; 15 class SyncSessionSnapshot;
13 } // namespace sessions 16 } // namespace sessions
14 } // namespace syncer 17 } // namespace syncer
15 18
16 namespace browser_sync { 19 namespace browser_sync {
17 20
18 // The minimum and maximum wait times for a retry. The actual retry would take 21 // The minimum and maximum wait times for a retry. The actual retry would take
19 // place somewhere in this range. The algorithm that calculates the retry wait 22 // place somewhere in this range. The algorithm that calculates the retry wait
(...skipping 24 matching lines...) Expand all
44 base::Time last_sync_time_; 47 base::Time last_sync_time_;
45 DelayInfo delay_table_[kMaxRetry]; 48 DelayInfo delay_table_[kMaxRetry];
46 bool success_; 49 bool success_;
47 bool done_; 50 bool done_;
48 DISALLOW_COPY_AND_ASSIGN(RetryVerifier); 51 DISALLOW_COPY_AND_ASSIGN(RetryVerifier);
49 }; 52 };
50 53
51 } // namespace browser_sync 54 } // namespace browser_sync
52 55
53 #endif // CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_ 56 #endif // CHROME_BROWSER_SYNC_RETRY_VERIFIER_H_
OLDNEW
« no previous file with comments | « no previous file | sync/base/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698