OLD | NEW |
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_PUBLIC_API_CHANGE_RECORD_H_ | 5 #ifndef SYNC_INTERNAL_PUBLIC_API_CHANGE_RECORD_H_ |
6 #define SYNC_INTERNAL_PUBLIC_API_CHANGE_RECORD_H_ | 6 #define SYNC_INTERNAL_PUBLIC_API_CHANGE_RECORD_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/memory/linked_ptr.h" | 11 #include "base/memory/linked_ptr.h" |
| 12 #include "sync/base/sync_export.h" |
12 #include "sync/internal_api/public/util/immutable.h" | 13 #include "sync/internal_api/public/util/immutable.h" |
13 #include "sync/protocol/password_specifics.pb.h" | 14 #include "sync/protocol/password_specifics.pb.h" |
14 #include "sync/protocol/sync.pb.h" | 15 #include "sync/protocol/sync.pb.h" |
15 | 16 |
16 namespace base { | 17 namespace base { |
17 class DictionaryValue; | 18 class DictionaryValue; |
18 } // namespace base | 19 } // namespace base |
19 | 20 |
20 namespace syncer { | 21 namespace syncer { |
21 | 22 |
22 // TODO(zea): One day get passwords playing nicely with the rest of encryption | 23 // TODO(zea): One day get passwords playing nicely with the rest of encryption |
23 // and get rid of this. | 24 // and get rid of this. |
24 class ExtraPasswordChangeRecordData { | 25 class SYNC_EXPORT ExtraPasswordChangeRecordData { |
25 public: | 26 public: |
26 ExtraPasswordChangeRecordData(); | 27 ExtraPasswordChangeRecordData(); |
27 explicit ExtraPasswordChangeRecordData( | 28 explicit ExtraPasswordChangeRecordData( |
28 const sync_pb::PasswordSpecificsData& data); | 29 const sync_pb::PasswordSpecificsData& data); |
29 virtual ~ExtraPasswordChangeRecordData(); | 30 virtual ~ExtraPasswordChangeRecordData(); |
30 | 31 |
31 // Transfers ownership of the DictionaryValue to the caller. | 32 // Transfers ownership of the DictionaryValue to the caller. |
32 virtual base::DictionaryValue* ToValue() const; | 33 virtual base::DictionaryValue* ToValue() const; |
33 | 34 |
34 const sync_pb::PasswordSpecificsData& unencrypted() const; | 35 const sync_pb::PasswordSpecificsData& unencrypted() const; |
(...skipping 23 matching lines...) Expand all Loading... |
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 |