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

Side by Side Diff: sync/internal_api/public/change_record.h

Issue 1545553003: Switch to standard integer types in sync/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_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
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_
OLDNEW
« no previous file with comments | « sync/internal_api/public/base_transaction.h ('k') | sync/internal_api/public/change_record_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698