OLD | NEW |
1 // Copyright 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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 30 matching lines...) Expand all Loading... |
41 bool notifications_enabled, | 41 bool notifications_enabled, |
42 size_t num_entries, | 42 size_t num_entries, |
43 base::Time sync_start_time, | 43 base::Time sync_start_time, |
44 base::Time poll_finish_time, | 44 base::Time poll_finish_time, |
45 const std::vector<int>& num_entries_by_type, | 45 const std::vector<int>& num_entries_by_type, |
46 const std::vector<int>& num_to_delete_entries_by_type, | 46 const std::vector<int>& num_to_delete_entries_by_type, |
47 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source); | 47 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source); |
48 SyncSessionSnapshot(const SyncSessionSnapshot& other); | 48 SyncSessionSnapshot(const SyncSessionSnapshot& other); |
49 ~SyncSessionSnapshot(); | 49 ~SyncSessionSnapshot(); |
50 | 50 |
51 scoped_ptr<base::DictionaryValue> ToValue() const; | 51 std::unique_ptr<base::DictionaryValue> ToValue() const; |
52 | 52 |
53 std::string ToString() const; | 53 std::string ToString() const; |
54 | 54 |
55 ModelNeutralState model_neutral_state() const { | 55 ModelNeutralState model_neutral_state() const { |
56 return model_neutral_state_; | 56 return model_neutral_state_; |
57 } | 57 } |
58 const ProgressMarkerMap& download_progress_markers() const; | 58 const ProgressMarkerMap& download_progress_markers() const; |
59 bool is_silenced() const; | 59 bool is_silenced() const; |
60 int num_encryption_conflicts() const; | 60 int num_encryption_conflicts() const; |
61 int num_hierarchy_conflicts() const; | 61 int num_hierarchy_conflicts() const; |
(...skipping 29 matching lines...) Expand all Loading... |
91 // still some value in displaying it on the about:sync page. | 91 // still some value in displaying it on the about:sync page. |
92 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source_; | 92 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource legacy_updates_source_; |
93 | 93 |
94 bool is_initialized_; | 94 bool is_initialized_; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace sessions | 97 } // namespace sessions |
98 } // namespace syncer | 98 } // namespace syncer |
99 | 99 |
100 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ | 100 #endif // SYNC_INTERNAL_API_PUBLIC_SESSIONS_SYNC_SESSION_SNAPSHOT_H_ |
OLD | NEW |