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

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

Issue 9663023: Log the sync communication that happens between client and server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For review. Created 8 years, 9 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 CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 7 #ifndef CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
8 #define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 8 #define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
9 #pragma once 9 #pragma once
10 10
11 namespace base { 11 namespace base {
12 class DictionaryValue; 12 class DictionaryValue;
13 } 13 }
14 14
15 namespace sync_pb { 15 namespace sync_pb {
16 class AppNotification; 16 class AppNotification;
17 class AppNotificationSettings; 17 class AppNotificationSettings;
18 class AppSettingSpecifics; 18 class AppSettingSpecifics;
19 class AppSpecifics; 19 class AppSpecifics;
20 class AutofillProfileSpecifics; 20 class AutofillProfileSpecifics;
21 class AutofillSpecifics; 21 class AutofillSpecifics;
22 class BookmarkSpecifics; 22 class BookmarkSpecifics;
23 class ClientToServerMessage;
24 class ClientToServerResponse;
23 class DeviceInformation; 25 class DeviceInformation;
24 class EncryptedData; 26 class EncryptedData;
25 class EntitySpecifics; 27 class EntitySpecifics;
26 class ExtensionSettingSpecifics; 28 class ExtensionSettingSpecifics;
27 class ExtensionSpecifics; 29 class ExtensionSpecifics;
28 class NigoriSpecifics; 30 class NigoriSpecifics;
29 class PasswordSpecifics; 31 class PasswordSpecifics;
30 class PasswordSpecificsData; 32 class PasswordSpecificsData;
31 class PreferenceSpecifics; 33 class PreferenceSpecifics;
32 class SearchEngineSpecifics; 34 class SearchEngineSpecifics;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 const sync_pb::ThemeSpecifics& theme_specifics); 132 const sync_pb::ThemeSpecifics& theme_specifics);
131 133
132 base::DictionaryValue* TypedUrlSpecificsToValue( 134 base::DictionaryValue* TypedUrlSpecificsToValue(
133 const sync_pb::TypedUrlSpecifics& typed_url_specifics); 135 const sync_pb::TypedUrlSpecifics& typed_url_specifics);
134 136
135 // Any present extensions are mapped to sub-dictionary values with the 137 // Any present extensions are mapped to sub-dictionary values with the
136 // key equal to the extension name. 138 // key equal to the extension name.
137 base::DictionaryValue* EntitySpecificsToValue( 139 base::DictionaryValue* EntitySpecificsToValue(
138 const sync_pb::EntitySpecifics& specifics); 140 const sync_pb::EntitySpecifics& specifics);
139 141
142 base::DictionaryValue* ClientToServerMessageToValue(
143 const sync_pb::ClientToServerMessage& proto,
144 bool decode_specifics);
akalin 2012/03/14 00:17:30 i think include_specifics is a better name (the st
lipalani1 2012/03/15 00:02:13 Done.
145
146 base::DictionaryValue* ClientToServerResponseToValue(
147 const sync_pb::ClientToServerResponse& proto,
148 bool decode_specifics);
akalin 2012/03/14 00:17:30 here too. don't forget to change the reference fr
lipalani1 2012/03/15 00:02:13 Done.
149
150
140 } // namespace browser_sync 151 } // namespace browser_sync
141 152
142 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 153 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698