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

Side by Side Diff: sync/internal_api/public/sessions/model_neutral_state.h

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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 #ifndef SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H 5 #ifndef SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H
6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H 6 #define SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "sync/internal_api/public/util/syncer_error.h" 9 #include "sync/internal_api/public/util/syncer_error.h"
10 #include "sync/protocol/sync.pb.h" 10 #include "sync/protocol/sync.pb.h"
11 #include "sync/protocol/sync_protocol_error.h" 11 #include "sync/protocol/sync_protocol_error.h"
12 12
13 namespace syncer { 13 namespace syncer {
14 namespace sessions { 14 namespace sessions {
15 15
16 // Grouping of all state that applies to all model types. Note that some 16 // Grouping of all state that applies to all model types. Note that some
17 // components of the global grouping can internally implement finer grained 17 // components of the global grouping can internally implement finer grained
18 // scope control, but the top level entity is still a singleton with respect to 18 // scope control, but the top level entity is still a singleton with respect to
19 // model types. 19 // model types.
20 struct ModelNeutralState { 20 struct ModelNeutralState {
21 ModelNeutralState(); 21 ModelNeutralState();
22 ~ModelNeutralState(); 22 ~ModelNeutralState();
23 23
24 // We GetUpdates for some combination of types at once. 24 // We GetUpdates for some combination of types at once.
25 // requested_update_types stores the set of types which were requested. 25 // requested_update_types stores the set of types which were requested.
26 syncer::ModelTypeSet updates_request_types; 26 ModelTypeSet updates_request_types;
27 27
28 sync_pb::ClientToServerResponse updates_response; 28 sync_pb::ClientToServerResponse updates_response;
29 29
30 int num_successful_commits; 30 int num_successful_commits;
31 31
32 // This is needed for monitoring extensions activity. 32 // This is needed for monitoring extensions activity.
33 int num_successful_bookmark_commits; 33 int num_successful_bookmark_commits;
34 34
35 // Download event counters. 35 // Download event counters.
36 int num_updates_downloaded_total; 36 int num_updates_downloaded_total;
37 int num_tombstone_updates_downloaded_total; 37 int num_tombstone_updates_downloaded_total;
38 int num_reflected_updates_downloaded_total; 38 int num_reflected_updates_downloaded_total;
39 39
40 // If the syncer encountered a MIGRATION_DONE code, these are the types that 40 // If the syncer encountered a MIGRATION_DONE code, these are the types that
41 // the client must now "migrate", by purging and re-downloading all updates. 41 // the client must now "migrate", by purging and re-downloading all updates.
42 syncer::ModelTypeSet types_needing_local_migration; 42 ModelTypeSet types_needing_local_migration;
43 43
44 // Overwrites due to conflict resolution counters. 44 // Overwrites due to conflict resolution counters.
45 int num_local_overwrites; 45 int num_local_overwrites;
46 int num_server_overwrites; 46 int num_server_overwrites;
47 47
48 // Any protocol errors that we received during this sync session. 48 // Any protocol errors that we received during this sync session.
49 SyncProtocolError sync_protocol_error; 49 SyncProtocolError sync_protocol_error;
50 50
51 // Records the most recent results of PostCommit and GetUpdates commands. 51 // Records the most recent results of PostCommit and GetUpdates commands.
52 SyncerError last_download_updates_result; 52 SyncerError last_download_updates_result;
(...skipping 11 matching lines...) Expand all
64 // Number of changes remaining, according to the server. 64 // Number of changes remaining, according to the server.
65 // Take it as an estimate unless it's value is zero, in which case there 65 // Take it as an estimate unless it's value is zero, in which case there
66 // really is nothing more to download. 66 // really is nothing more to download.
67 int64 num_server_changes_remaining; 67 int64 num_server_changes_remaining;
68 }; 68 };
69 69
70 } // namespace sessions 70 } // namespace sessions
71 } // namespace syncer 71 } // namespace syncer
72 72
73 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_ 73 #endif // SYNC_SESSIONS_MODEL_NEUTRAL_STATE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/read_node.h ('k') | sync/internal_api/public/sessions/sync_session_snapshot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698