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

Side by Side Diff: components/sync/api/entity_data.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/api/entity_change.cc ('k') | components/sync/api/entity_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_API_ENTITY_DATA_H_ 5 #ifndef COMPONENTS_SYNC_API_ENTITY_DATA_H_
6 #define SYNC_API_ENTITY_DATA_H_ 6 #define COMPONENTS_SYNC_API_ENTITY_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "sync/base/sync_export.h" 14 #include "components/sync/base/proto_value_ptr.h"
15 #include "sync/internal_api/public/util/proto_value_ptr.h" 15 #include "components/sync/base/sync_export.h"
16 #include "sync/protocol/sync.pb.h" 16 #include "components/sync/protocol/sync.pb.h"
17 17
18 namespace syncer_v2 { 18 namespace syncer_v2 {
19 19
20 struct EntityData; 20 struct EntityData;
21 21
22 struct SYNC_EXPORT EntityDataTraits { 22 struct SYNC_EXPORT EntityDataTraits {
23 static void SwapValue(EntityData* dest, EntityData* src); 23 static void SwapValue(EntityData* dest, EntityData* src);
24 static bool HasValue(const EntityData& value); 24 static bool HasValue(const EntityData& value);
25 static const EntityData& DefaultValue(); 25 static const EntityData& DefaultValue();
26 }; 26 };
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 private: 78 private:
79 friend struct EntityDataTraits; 79 friend struct EntityDataTraits;
80 // Used to transfer the data without copying. 80 // Used to transfer the data without copying.
81 void Swap(EntityData* other); 81 void Swap(EntityData* other);
82 82
83 DISALLOW_COPY_AND_ASSIGN(EntityData); 83 DISALLOW_COPY_AND_ASSIGN(EntityData);
84 }; 84 };
85 85
86 } // namespace syncer_v2 86 } // namespace syncer_v2
87 87
88 #endif // SYNC_API_ENTITY_DATA_H_ 88 #endif // COMPONENTS_SYNC_API_ENTITY_DATA_H_
OLDNEW
« no previous file with comments | « components/sync/api/entity_change.cc ('k') | components/sync/api/entity_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698