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

Side by Side Diff: components/sync/base/proto_value_ptr.h

Issue 2419793005: [Sync] Fix test support targets + duplicate namespaces. (Closed)
Patch Set: Fix ChromeOS. Created 4 years, 2 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/BUILD.gn ('k') | components/sync/device_info/device_info_service.h » ('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 COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_ 5 #ifndef COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_
6 #define COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_ 6 #define COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
11 namespace syncer { 11 namespace syncer {
12
13 class ProcessorEntityTracker;
12 struct EntityData; 14 struct EntityData;
13 class ProcessorEntityTracker;
14 } // namespace syncer
15
16 namespace syncer {
17 15
18 namespace syncable { 16 namespace syncable {
19 struct EntryKernel; 17 struct EntryKernel;
20 } // namespace syncable 18 } // namespace syncable
21 19
22 // Default traits struct for ProtoValuePtr - adapts a 20 // Default traits struct for ProtoValuePtr - adapts a
23 // ::google::protobuf::MessageLite derived type to be used with ProtoValuePtr. 21 // ::google::protobuf::MessageLite derived type to be used with ProtoValuePtr.
24 template <typename T> 22 template <typename T>
25 struct DefaultProtoValuePtrTraits { 23 struct DefaultProtoValuePtrTraits {
26 // Deep copy the value from |src| to |dest|. 24 // Deep copy the value from |src| to |dest|.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void load(const void* blob, int length) { 121 void load(const void* blob, int length) {
124 wrapper_ = Wrapper::ParseFromBlob(blob, length); 122 wrapper_ = Wrapper::ParseFromBlob(blob, length);
125 } 123 }
126 124
127 scoped_refptr<Wrapper> wrapper_; 125 scoped_refptr<Wrapper> wrapper_;
128 }; 126 };
129 127
130 } // namespace syncer 128 } // namespace syncer
131 129
132 #endif // COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_ 130 #endif // COMPONENTS_SYNC_BASE_PROTO_VALUE_PTR_H_
OLDNEW
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/device_info/device_info_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698