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

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

Issue 11515009: [sync] Componentize sync: Part 2: Add SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR Feedback Created 8 years 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 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/base/model_type.h" 13 #include "sync/internal_api/public/base/model_type.h"
13 #include "sync/internal_api/public/base/progress_marker_map.h" 14 #include "sync/internal_api/public/base/progress_marker_map.h"
14 #include "sync/internal_api/public/sessions/model_neutral_state.h" 15 #include "sync/internal_api/public/sessions/model_neutral_state.h"
15 #include "sync/internal_api/public/sessions/sync_source_info.h" 16 #include "sync/internal_api/public/sessions/sync_source_info.h"
16 17
17 namespace base { 18 namespace base {
18 class DictionaryValue; 19 class DictionaryValue;
19 } 20 }
20 21
21 namespace syncer { 22 namespace syncer {
22 namespace sessions { 23 namespace sessions {
23 24
24 // 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
25 // part of notifications as it is inherently thread-safe. 26 // part of notifications as it is inherently thread-safe.
26 // 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,
27 // consider passing around immutable references instead of values. 28 // consider passing around immutable references instead of values.
28 // Default copy and assign welcome. 29 // Default copy and assign welcome.
29 class SyncSessionSnapshot { 30 class SYNC_EXPORT SyncSessionSnapshot {
30 public: 31 public:
31 SyncSessionSnapshot(); 32 SyncSessionSnapshot();
32 SyncSessionSnapshot( 33 SyncSessionSnapshot(
33 const ModelNeutralState& model_neutral_state, 34 const ModelNeutralState& model_neutral_state,
34 bool is_share_usable, 35 bool is_share_usable,
35 ModelTypeSet initial_sync_ended, 36 ModelTypeSet initial_sync_ended,
36 const ProgressMarkerMap& download_progress_markers, 37 const ProgressMarkerMap& download_progress_markers,
37 bool is_silenced, 38 bool is_silenced,
38 int num_encryption_conflicts, 39 int num_encryption_conflicts,
39 int num_hierarchy_conflicts, 40 int num_hierarchy_conflicts,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 std::vector<int> num_entries_by_type_; 93 std::vector<int> num_entries_by_type_;
93 std::vector<int> num_to_delete_entries_by_type_; 94 std::vector<int> num_to_delete_entries_by_type_;
94 95
95 bool is_initialized_; 96 bool is_initialized_;
96 }; 97 };
97 98
98 } // namespace sessions 99 } // namespace sessions
99 } // namespace syncer 100 } // namespace syncer
100 101
101 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ 102 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/model_neutral_state.h ('k') | sync/internal_api/public/sessions/sync_source_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698