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

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

Issue 10905045: [Sync] Pass ModelTypeSet by value everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 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
« no previous file with comments | « sync/engine/all_status.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('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 // 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 8
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 } // namespace tracked_objects 22 } // namespace tracked_objects
23 23
24 namespace syncer { 24 namespace syncer {
25 25
26 struct ServerConnectionEvent; 26 struct ServerConnectionEvent;
27 27
28 struct ConfigurationParams { 28 struct ConfigurationParams {
29 ConfigurationParams(); 29 ConfigurationParams();
30 ConfigurationParams( 30 ConfigurationParams(
31 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& source, 31 const sync_pb::GetUpdatesCallerInfo::GetUpdatesSource& source,
32 const ModelTypeSet& types_to_download, 32 ModelTypeSet types_to_download,
33 const ModelSafeRoutingInfo& routing_info, 33 const ModelSafeRoutingInfo& routing_info,
34 const base::Closure& ready_task); 34 const base::Closure& ready_task);
35 ~ConfigurationParams(); 35 ~ConfigurationParams();
36 36
37 // Source for the configuration. 37 // Source for the configuration.
38 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source; 38 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource source;
39 // The types that should be downloaded. 39 // The types that should be downloaded.
40 ModelTypeSet types_to_download; 40 ModelTypeSet types_to_download;
41 // The new routing info (superset of types to be downloaded). 41 // The new routing info (superset of types to be downloaded).
42 ModelSafeRoutingInfo routing_info; 42 ModelSafeRoutingInfo routing_info;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // Called when credentials are updated by the user. 103 // Called when credentials are updated by the user.
104 virtual void OnCredentialsUpdated() = 0; 104 virtual void OnCredentialsUpdated() = 0;
105 105
106 // Called when the network layer detects a connection status change. 106 // Called when the network layer detects a connection status change.
107 virtual void OnConnectionStatusChange() = 0; 107 virtual void OnConnectionStatusChange() = 0;
108 }; 108 };
109 109
110 } // namespace syncer 110 } // namespace syncer
111 111
112 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_ 112 #endif // SYNC_ENGINE_SYNC_SCHEDULER_H_
OLDNEW
« no previous file with comments | « sync/engine/all_status.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698