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

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

Issue 211019: Fix compiling of sync on linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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 // The sync process consists of a sequence of sync cycles, each of which 5 // The sync process consists of a sequence of sync cycles, each of which
6 // (hopefully) moves the client into closer synchronization with the server. 6 // (hopefully) moves the client into closer synchronization with the server.
7 // While SyncCycleState holds state that is pertinent to a single sync cycle, 7 // While SyncCycleState holds state that is pertinent to a single sync cycle,
8 // this data structure holds state that must be passed from cycle to cycle. 8 // this data structure holds state that must be passed from cycle to cycle.
9 // 9 //
10 // THIS CLASS PROVIDES NO SYNCHRONIZATION GUARANTEES. 10 // THIS CLASS PROVIDES NO SYNCHRONIZATION GUARANTEES.
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 282
283 // Returns true if auth status has been modified since last SetClean() call. 283 // Returns true if auth status has been modified since last SetClean() call.
284 bool IsAuthDirty() const { return auth_dirty_; } 284 bool IsAuthDirty() const { return auth_dirty_; }
285 285
286 // Call to tell this status object that its auth state has been seen. 286 // Call to tell this status object that its auth state has been seen.
287 void SetAuthClean() { auth_dirty_ = false; } 287 void SetAuthClean() { auth_dirty_ = false; }
288 288
289 private: 289 private:
290 // For testing. 290 // For testing.
291 SyncProcessState() 291 SyncProcessState()
292 : account_name_(PSTR("")), 292 : num_sync_cycles_(0),
293 silenced_until_(0),
294 connection_manager_(NULL),
295 account_name_(PSTR("")),
293 dirman_(NULL), 296 dirman_(NULL),
297 resolver_(NULL),
298 model_safe_worker_(NULL),
294 syncer_event_channel_(NULL), 299 syncer_event_channel_(NULL),
295 connection_manager_(NULL),
296 model_safe_worker_(NULL),
297 resolver_(NULL),
298 syncer_stuck_(false),
299 num_sync_cycles_(0),
300 silenced_until_(0),
301 error_rate_(0), 300 error_rate_(0),
302 current_sync_timestamp_(0), 301 current_sync_timestamp_(0),
303 servers_latest_timestamp_(0), 302 servers_latest_timestamp_(0),
303 syncing_(false),
304 invalid_store_(false),
305 syncer_stuck_(false),
304 error_commits_(0), 306 error_commits_(0),
307 conflicting_commits_(0),
305 stalled_commits_(0), 308 stalled_commits_(0),
306 conflicting_commits_(0),
307 consecutive_problem_get_updates_(0), 309 consecutive_problem_get_updates_(0),
308 consecutive_problem_commits_(0), 310 consecutive_problem_commits_(0),
309 consecutive_transient_error_commits_(0), 311 consecutive_transient_error_commits_(0),
310 consecutive_errors_(0), 312 consecutive_errors_(0),
311 successful_commits_(0), 313 successful_commits_(0),
312 dirty_(false), 314 dirty_(false),
313 auth_dirty_(false), 315 auth_dirty_(false),
314 auth_failed_(false), 316 auth_failed_(false) {}
315 syncing_(false),
316 invalid_store_(false) {}
317 317
318 ServerConnectionManager* connection_manager_; 318 ServerConnectionManager* connection_manager_;
319 const PathString account_name_; 319 const PathString account_name_;
320 syncable::DirectoryManager* const dirman_; 320 syncable::DirectoryManager* const dirman_;
321 ConflictResolver* const resolver_; 321 ConflictResolver* const resolver_;
322 ModelSafeWorker* const model_safe_worker_; 322 ModelSafeWorker* const model_safe_worker_;
323 323
324 // For sending notifications from sync commands out to observers of the 324 // For sending notifications from sync commands out to observers of the
325 // Syncer. 325 // Syncer.
326 SyncerEventChannel* syncer_event_channel_; 326 SyncerEventChannel* syncer_event_channel_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 bool auth_failed_; 373 bool auth_failed_;
374 374
375 void UpdateDirty(bool new_info) { dirty_ |= new_info; } 375 void UpdateDirty(bool new_info) { dirty_ |= new_info; }
376 376
377 void UpdateAuthDirty(bool new_info) { auth_dirty_ |= new_info; } 377 void UpdateAuthDirty(bool new_info) { auth_dirty_ |= new_info; }
378 }; 378 };
379 379
380 } // namespace browser_sync 380 } // namespace browser_sync
381 381
382 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_PROCESS_STATE_H_ 382 #endif // CHROME_BROWSER_SYNC_ENGINE_SYNC_PROCESS_STATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/sync_cycle_state.h ('k') | chrome/browser/sync/engine/sync_process_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698