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

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

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698