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

Side by Side Diff: sync/sessions/sync_session.h

Issue 124083002: Client-side changes to support retry GU. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
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 // A class representing an attempt to synchronize the local syncable data 5 // A class representing an attempt to synchronize the local syncable data
6 // store with a sync server. A SyncSession instance is passed as a stateful 6 // store with a sync server. A SyncSession instance is passed as a stateful
7 // bundle throughout the sync cycle. The SyncSession is not reused across 7 // bundle throughout the sync cycle. The SyncSession is not reused across
8 // sync cycles; each cycle starts with a new one. 8 // sync cycles; each cycle starts with a new one.
9 9
10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_ 10 #ifndef SYNC_SESSIONS_SYNC_SESSION_H_
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const base::TimeDelta& new_delay) = 0; 74 const base::TimeDelta& new_delay) = 0;
75 75
76 // Called for the syncer to respond to the error sent by the server. 76 // Called for the syncer to respond to the error sent by the server.
77 virtual void OnSyncProtocolError( 77 virtual void OnSyncProtocolError(
78 const sessions::SyncSessionSnapshot& snapshot) = 0; 78 const sessions::SyncSessionSnapshot& snapshot) = 0;
79 79
80 // Called when the server wants to change the number of hints the client 80 // Called when the server wants to change the number of hints the client
81 // will buffer locally. 81 // will buffer locally.
82 virtual void OnReceivedClientInvalidationHintBufferSize(int size) = 0; 82 virtual void OnReceivedClientInvalidationHintBufferSize(int size) = 0;
83 83
84 // Called when server wants to schedule a retry GU.
85 virtual void OnReceivedGuRetryDelaySeconds(int delay_seconds) = 0;
86
84 protected: 87 protected:
85 virtual ~Delegate() {} 88 virtual ~Delegate() {}
86 }; 89 };
87 90
88 // Build a session without a nudge tracker. Used for poll or configure type 91 // Build a session without a nudge tracker. Used for poll or configure type
89 // sync cycles. 92 // sync cycles.
90 static SyncSession* Build(SyncSessionContext* context, 93 static SyncSession* Build(SyncSessionContext* context,
91 Delegate* delegate); 94 Delegate* delegate);
92 ~SyncSession(); 95 ~SyncSession();
93 96
(...skipping 30 matching lines...) Expand all
124 // Our controller for various status and error counters. 127 // Our controller for various status and error counters.
125 scoped_ptr<StatusController> status_controller_; 128 scoped_ptr<StatusController> status_controller_;
126 129
127 DISALLOW_COPY_AND_ASSIGN(SyncSession); 130 DISALLOW_COPY_AND_ASSIGN(SyncSession);
128 }; 131 };
129 132
130 } // namespace sessions 133 } // namespace sessions
131 } // namespace syncer 134 } // namespace syncer
132 135
133 #endif // SYNC_SESSIONS_SYNC_SESSION_H_ 136 #endif // SYNC_SESSIONS_SYNC_SESSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698