| 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_CHANGE_RECORD_H_ | 5 #ifndef SYNC_INTERNAL_API_PUBLIC_CHANGE_RECORD_H_ |
| 6 #define SYNC_INTERNAL_API_PUBLIC_CHANGE_RECORD_H_ | 6 #define SYNC_INTERNAL_API_PUBLIC_CHANGE_RECORD_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | |
| 11 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "sync/base/sync_export.h" | 14 #include "sync/base/sync_export.h" |
| 14 #include "sync/internal_api/public/util/immutable.h" | 15 #include "sync/internal_api/public/util/immutable.h" |
| 15 #include "sync/protocol/password_specifics.pb.h" | 16 #include "sync/protocol/password_specifics.pb.h" |
| 16 #include "sync/protocol/sync.pb.h" | 17 #include "sync/protocol/sync.pb.h" |
| 17 | 18 |
| 18 namespace base { | 19 namespace base { |
| 19 class DictionaryValue; | 20 class DictionaryValue; |
| 20 } // namespace base | 21 } // namespace base |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 enum Action { | 46 enum Action { |
| 46 ACTION_ADD, | 47 ACTION_ADD, |
| 47 ACTION_DELETE, | 48 ACTION_DELETE, |
| 48 ACTION_UPDATE, | 49 ACTION_UPDATE, |
| 49 }; | 50 }; |
| 50 ChangeRecord(); | 51 ChangeRecord(); |
| 51 ~ChangeRecord(); | 52 ~ChangeRecord(); |
| 52 | 53 |
| 53 scoped_ptr<base::DictionaryValue> ToValue() const; | 54 scoped_ptr<base::DictionaryValue> ToValue() const; |
| 54 | 55 |
| 55 int64 id; | 56 int64_t id; |
| 56 Action action; | 57 Action action; |
| 57 sync_pb::EntitySpecifics specifics; | 58 sync_pb::EntitySpecifics specifics; |
| 58 linked_ptr<ExtraPasswordChangeRecordData> extra; | 59 linked_ptr<ExtraPasswordChangeRecordData> extra; |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 typedef std::vector<ChangeRecord> ChangeRecordList; | 62 typedef std::vector<ChangeRecord> ChangeRecordList; |
| 62 | 63 |
| 63 typedef Immutable<ChangeRecordList> ImmutableChangeRecordList; | 64 typedef Immutable<ChangeRecordList> ImmutableChangeRecordList; |
| 64 | 65 |
| 65 } // namespace syncer | 66 } // namespace syncer |
| 66 | 67 |
| 67 #endif // SYNC_INTERNAL_API_PUBLIC_CHANGE_RECORD_H_ | 68 #endif // SYNC_INTERNAL_API_PUBLIC_CHANGE_RECORD_H_ |
| OLD | NEW |