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

Side by Side Diff: sync/protocol/proto_value_conversions.h

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #ifndef SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 7 #ifndef SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
8 #define SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 8 #define SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 // Utility functions to convert sync protocol buffers to dictionaries. 44 // Utility functions to convert sync protocol buffers to dictionaries.
45 // Each protocol field is mapped to a key of the same name. Repeated 45 // Each protocol field is mapped to a key of the same name. Repeated
46 // fields are mapped to array values and sub-messages are mapped to 46 // fields are mapped to array values and sub-messages are mapped to
47 // sub-dictionary values. 47 // sub-dictionary values.
48 // 48 //
49 // TODO(akalin): Add has_* information. 49 // TODO(akalin): Add has_* information.
50 // 50 //
51 // TODO(akalin): Improve enum support. 51 // TODO(akalin): Improve enum support.
52 52
53 namespace csync { 53 namespace syncer {
54 54
55 // Ownership of all returned DictionaryValues are transferred to the 55 // Ownership of all returned DictionaryValues are transferred to the
56 // caller. 56 // caller.
57 57
58 // TODO(akalin): Perhaps extend this to decrypt? 58 // TODO(akalin): Perhaps extend this to decrypt?
59 base::DictionaryValue* EncryptedDataToValue( 59 base::DictionaryValue* EncryptedDataToValue(
60 const sync_pb::EncryptedData& encrypted_data); 60 const sync_pb::EncryptedData& encrypted_data);
61 61
62 // Sub-protocol of AppSpecifics. 62 // Sub-protocol of AppSpecifics.
63 base::DictionaryValue* AppSettingsToValue( 63 base::DictionaryValue* AppSettingsToValue(
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 base::DictionaryValue* ClientToServerMessageToValue( 142 base::DictionaryValue* ClientToServerMessageToValue(
143 const sync_pb::ClientToServerMessage& proto, 143 const sync_pb::ClientToServerMessage& proto,
144 bool include_specifics); 144 bool include_specifics);
145 145
146 base::DictionaryValue* ClientToServerResponseToValue( 146 base::DictionaryValue* ClientToServerResponseToValue(
147 const sync_pb::ClientToServerResponse& proto, 147 const sync_pb::ClientToServerResponse& proto,
148 bool include_specifics); 148 bool include_specifics);
149 149
150 150
151 } // namespace csync 151 } // namespace syncer
152 152
153 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 153 #endif // SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/protocol/proto_enum_conversions_unittest.cc ('k') | sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698