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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments 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_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/time.h" 12 #include "base/time.h"
13 #include "sync/internal_api/public/sessions/model_neutral_state.h" 13 #include "sync/internal_api/public/sessions/model_neutral_state.h"
14 #include "sync/internal_api/public/sessions/sync_source_info.h" 14 #include "sync/internal_api/public/sessions/sync_source_info.h"
15 #include "sync/internal_api/public/syncable/model_type.h" 15 #include "sync/internal_api/public/syncable/model_type.h"
16 #include "sync/internal_api/public/syncable/model_type_payload_map.h" 16 #include "sync/internal_api/public/syncable/model_type_payload_map.h"
17 17
18 namespace base { 18 namespace base {
19 class DictionaryValue; 19 class DictionaryValue;
20 } 20 }
21 21
22 namespace csync { 22 namespace syncer {
23 namespace sessions { 23 namespace sessions {
24 24
25 // An immutable snapshot of state from a SyncSession. Convenient to use as 25 // An immutable snapshot of state from a SyncSession. Convenient to use as
26 // part of notifications as it is inherently thread-safe. 26 // part of notifications as it is inherently thread-safe.
27 // TODO(zea): if copying this all over the place starts getting expensive, 27 // TODO(zea): if copying this all over the place starts getting expensive,
28 // consider passing around immutable references instead of values. 28 // consider passing around immutable references instead of values.
29 // Default copy and assign welcome. 29 // Default copy and assign welcome.
30 class SyncSessionSnapshot { 30 class SyncSessionSnapshot {
31 public: 31 public:
32 SyncSessionSnapshot(); 32 SyncSessionSnapshot();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 int num_simple_conflicts_; 84 int num_simple_conflicts_;
85 int num_server_conflicts_; 85 int num_server_conflicts_;
86 SyncSourceInfo source_; 86 SyncSourceInfo source_;
87 bool notifications_enabled_; 87 bool notifications_enabled_;
88 size_t num_entries_; 88 size_t num_entries_;
89 base::Time sync_start_time_; 89 base::Time sync_start_time_;
90 bool retry_scheduled_; 90 bool retry_scheduled_;
91 }; 91 };
92 92
93 } // namespace sessions 93 } // namespace sessions
94 } // namespace csync 94 } // namespace syncer
95 95
96 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ 96 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/model_neutral_state.cc ('k') | sync/internal_api/public/sessions/sync_session_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698