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

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

Issue 10167017: Fix some migration-related bugs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit tests Created 8 years, 8 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) 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 SYNC_ENGINE_SYNC_SCHEDULER_H_ 6 #ifndef SYNC_ENGINE_SYNC_SCHEDULER_H_
7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_ 7 #define SYNC_ENGINE_SYNC_SCHEDULER_H_
8 #pragma once 8 #pragma once
9 9
10 #include <string> 10 #include <string>
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // for those. 160 // for those.
161 CLEANUP_DISABLED_TYPES, 161 CLEANUP_DISABLED_TYPES,
162 }; 162 };
163 SyncSessionJob(); 163 SyncSessionJob();
164 SyncSessionJob(SyncSessionJobPurpose purpose, base::TimeTicks start, 164 SyncSessionJob(SyncSessionJobPurpose purpose, base::TimeTicks start,
165 linked_ptr<sessions::SyncSession> session, bool is_canary_job, 165 linked_ptr<sessions::SyncSession> session, bool is_canary_job,
166 const tracked_objects::Location& nudge_location); 166 const tracked_objects::Location& nudge_location);
167 ~SyncSessionJob(); 167 ~SyncSessionJob();
168 static const char* GetPurposeString(SyncSessionJobPurpose purpose); 168 static const char* GetPurposeString(SyncSessionJobPurpose purpose);
169 169
170 bool Succeeded();
tim (not reviewing) 2012/04/20 22:38:09 I don't think this is part of this patch?
rlarocque 2012/04/20 22:45:08 No. I have no idea how this got included.
171
170 SyncSessionJobPurpose purpose; 172 SyncSessionJobPurpose purpose;
171 base::TimeTicks scheduled_start; 173 base::TimeTicks scheduled_start;
172 linked_ptr<sessions::SyncSession> session; 174 linked_ptr<sessions::SyncSession> session;
173 bool is_canary_job; 175 bool is_canary_job;
174 176
175 // This is the location the job came from. Used for debugging. 177 // This is the location the job came from. Used for debugging.
176 // In case of multiple nudges getting coalesced this stores the 178 // In case of multiple nudges getting coalesced this stores the
177 // first location that came in. 179 // first location that came in.
178 tracked_objects::Location from_here; 180 tracked_objects::Location from_here;
179 }; 181 };
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 scoped_ptr<Syncer> syncer_; 411 scoped_ptr<Syncer> syncer_;
410 412
411 scoped_ptr<sessions::SyncSessionContext> session_context_; 413 scoped_ptr<sessions::SyncSessionContext> session_context_;
412 414
413 DISALLOW_COPY_AND_ASSIGN(SyncScheduler); 415 DISALLOW_COPY_AND_ASSIGN(SyncScheduler);
414 }; 416 };
415 417
416 } // namespace browser_sync 418 } // namespace browser_sync
417 419
418 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ 420 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698