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

Unified Diff: chrome/browser/sync/engine/syncer_types.h

Issue 386030: Relieve SyncerSession,SyncCycleState, SyncProcessState, SyncerSession, Syncer... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/engine/syncer_thread_unittest.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/syncer_types.h
===================================================================
--- chrome/browser/sync/engine/syncer_types.h (revision 32731)
+++ chrome/browser/sync/engine/syncer_types.h (working copy)
@@ -19,9 +19,9 @@
// in a single place without having dependencies between other files.
namespace browser_sync {
-class SyncProcessState;
-class SyncCycleState;
-class SyncerSession;
+namespace sessions {
+struct SyncSessionSnapshot;
+}
class Syncer;
enum UpdateAttemptResponse {
@@ -93,6 +93,11 @@
SYNC_CYCLE_ENDED,
};
+ explicit SyncerEvent(EventCause cause) : what_happened(cause),
+ snapshot(NULL),
+ successful_commit_count(0),
+ nudge_delay_milliseconds(0) {}
+
static bool IsChannelShutdownEvent(const SyncerEvent& e) {
return SHUTDOWN_USE_WITH_CARE == e.what_happened;
}
@@ -105,7 +110,7 @@
EventCause what_happened;
// The last session used for syncing.
- SyncerSession* last_session;
+ const sessions::SyncSessionSnapshot* snapshot;
int successful_commit_count;
« no previous file with comments | « chrome/browser/sync/engine/syncer_thread_unittest.cc ('k') | chrome/browser/sync/engine/syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698