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

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

Issue 11416126: Track merged nudge sources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More comments 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 (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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 21 matching lines...) Expand all
32 SyncSessionSnapshot( 32 SyncSessionSnapshot(
33 const ModelNeutralState& model_neutral_state, 33 const ModelNeutralState& model_neutral_state,
34 bool is_share_usable, 34 bool is_share_usable,
35 ModelTypeSet initial_sync_ended, 35 ModelTypeSet initial_sync_ended,
36 const ProgressMarkerMap& download_progress_markers, 36 const ProgressMarkerMap& download_progress_markers,
37 bool is_silenced, 37 bool is_silenced,
38 int num_encryption_conflicts, 38 int num_encryption_conflicts,
39 int num_hierarchy_conflicts, 39 int num_hierarchy_conflicts,
40 int num_server_conflicts, 40 int num_server_conflicts,
41 const SyncSourceInfo& source, 41 const SyncSourceInfo& source,
42 const std::vector<SyncSourceInfo>& debug_info_sources_list,
42 bool notifications_enabled, 43 bool notifications_enabled,
43 size_t num_entries, 44 size_t num_entries,
44 base::Time sync_start_time, 45 base::Time sync_start_time,
45 const std::vector<int>& num_entries_by_type, 46 const std::vector<int>& num_entries_by_type,
46 const std::vector<int>& num_to_delete_entries_by_type); 47 const std::vector<int>& num_to_delete_entries_by_type);
47 ~SyncSessionSnapshot(); 48 ~SyncSessionSnapshot();
48 49
49 // Caller takes ownership of the returned dictionary. 50 // Caller takes ownership of the returned dictionary.
50 base::DictionaryValue* ToValue() const; 51 base::DictionaryValue* ToValue() const;
51 52
52 std::string ToString() const; 53 std::string ToString() const;
53 54
54 ModelNeutralState model_neutral_state() const { 55 ModelNeutralState model_neutral_state() const {
55 return model_neutral_state_; 56 return model_neutral_state_;
56 } 57 }
57 int64 num_server_changes_remaining() const; 58 int64 num_server_changes_remaining() const;
58 bool is_share_usable() const; 59 bool is_share_usable() const;
59 ModelTypeSet initial_sync_ended() const; 60 ModelTypeSet initial_sync_ended() const;
60 const ProgressMarkerMap& download_progress_markers() const; 61 const ProgressMarkerMap& download_progress_markers() const;
61 bool is_silenced() const; 62 bool is_silenced() const;
62 int num_encryption_conflicts() const; 63 int num_encryption_conflicts() const;
63 int num_hierarchy_conflicts() const; 64 int num_hierarchy_conflicts() const;
64 int num_server_conflicts() const; 65 int num_server_conflicts() const;
65 SyncSourceInfo source() const; 66 SyncSourceInfo source() const;
67 const std::vector<SyncSourceInfo>& debug_info_sources_list() const;
66 bool notifications_enabled() const; 68 bool notifications_enabled() const;
67 size_t num_entries() const; 69 size_t num_entries() const;
68 base::Time sync_start_time() const; 70 base::Time sync_start_time() const;
69 const std::vector<int>& num_entries_by_type() const; 71 const std::vector<int>& num_entries_by_type() const;
70 const std::vector<int>& num_to_delete_entries_by_type() const; 72 const std::vector<int>& num_to_delete_entries_by_type() const;
71 73
72 // Set iff this snapshot was not built using the default constructor. 74 // Set iff this snapshot was not built using the default constructor.
73 bool is_initialized() const; 75 bool is_initialized() const;
74 76
75 private: 77 private:
76 ModelNeutralState model_neutral_state_; 78 ModelNeutralState model_neutral_state_;
77 bool is_share_usable_; 79 bool is_share_usable_;
78 ModelTypeSet initial_sync_ended_; 80 ModelTypeSet initial_sync_ended_;
79 ProgressMarkerMap download_progress_markers_; 81 ProgressMarkerMap download_progress_markers_;
80 bool is_silenced_; 82 bool is_silenced_;
81 int num_encryption_conflicts_; 83 int num_encryption_conflicts_;
82 int num_hierarchy_conflicts_; 84 int num_hierarchy_conflicts_;
83 int num_server_conflicts_; 85 int num_server_conflicts_;
84 SyncSourceInfo source_; 86 SyncSourceInfo source_;
87 std::vector<SyncSourceInfo> debug_info_sources_list_;
85 bool notifications_enabled_; 88 bool notifications_enabled_;
86 size_t num_entries_; 89 size_t num_entries_;
87 base::Time sync_start_time_; 90 base::Time sync_start_time_;
88 91
89 std::vector<int> num_entries_by_type_; 92 std::vector<int> num_entries_by_type_;
90 std::vector<int> num_to_delete_entries_by_type_; 93 std::vector<int> num_to_delete_entries_by_type_;
91 94
92 bool is_initialized_; 95 bool is_initialized_;
93 }; 96 };
94 97
95 } // namespace sessions 98 } // namespace sessions
96 } // namespace syncer 99 } // namespace syncer
97 100
98 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ 101 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698