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

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

Issue 8375047: Separate the syncing of extension settings and app settings into separate data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 AppNotificationSettings; 16 class AppNotificationSettings;
17 class AppNotificationSpecifics; 17 class AppNotificationSpecifics;
18 class AppSettingSpecifics;
18 class AppSpecifics; 19 class AppSpecifics;
19 class AutofillProfileSpecifics; 20 class AutofillProfileSpecifics;
20 class AutofillSpecifics; 21 class AutofillSpecifics;
21 class BookmarkSpecifics; 22 class BookmarkSpecifics;
22 class EncryptedData; 23 class EncryptedData;
23 class EntitySpecifics; 24 class EntitySpecifics;
24 class ExtensionSettingSpecifics; 25 class ExtensionSettingSpecifics;
25 class ExtensionSpecifics; 26 class ExtensionSpecifics;
26 class NigoriSpecifics; 27 class NigoriSpecifics;
27 class PasswordSpecifics; 28 class PasswordSpecifics;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // Sub-protocol of PasswordSpecifics. 77 // Sub-protocol of PasswordSpecifics.
77 78
78 base::DictionaryValue* PasswordSpecificsDataToValue( 79 base::DictionaryValue* PasswordSpecificsDataToValue(
79 const sync_pb::PasswordSpecificsData& password_specifics_data); 80 const sync_pb::PasswordSpecificsData& password_specifics_data);
80 81
81 // Main *SpecificsToValue functions. 82 // Main *SpecificsToValue functions.
82 83
83 base::DictionaryValue* AppNotificationSpecificsToValue( 84 base::DictionaryValue* AppNotificationSpecificsToValue(
84 const sync_pb::AppNotificationSpecifics& app_notification_specifics); 85 const sync_pb::AppNotificationSpecifics& app_notification_specifics);
85 86
87 base::DictionaryValue* AppSettingSpecificsToValue(
88 const sync_pb::AppSettingSpecifics& app_setting_specifics);
89
86 base::DictionaryValue* AppSpecificsToValue( 90 base::DictionaryValue* AppSpecificsToValue(
87 const sync_pb::AppSpecifics& app_specifics); 91 const sync_pb::AppSpecifics& app_specifics);
88 92
89 base::DictionaryValue* AutofillSpecificsToValue( 93 base::DictionaryValue* AutofillSpecificsToValue(
90 const sync_pb::AutofillSpecifics& autofill_specifics); 94 const sync_pb::AutofillSpecifics& autofill_specifics);
91 95
92 base::DictionaryValue* AutofillProfileSpecificsToValue( 96 base::DictionaryValue* AutofillProfileSpecificsToValue(
93 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics); 97 const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics);
94 98
95 base::DictionaryValue* BookmarkSpecificsToValue( 99 base::DictionaryValue* BookmarkSpecificsToValue(
(...skipping 27 matching lines...) Expand all
123 const sync_pb::TypedUrlSpecifics& typed_url_specifics); 127 const sync_pb::TypedUrlSpecifics& typed_url_specifics);
124 128
125 // Any present extensions are mapped to sub-dictionary values with the 129 // Any present extensions are mapped to sub-dictionary values with the
126 // key equal to the extension name. 130 // key equal to the extension name.
127 base::DictionaryValue* EntitySpecificsToValue( 131 base::DictionaryValue* EntitySpecificsToValue(
128 const sync_pb::EntitySpecifics& entity_specifics); 132 const sync_pb::EntitySpecifics& entity_specifics);
129 133
130 } // namespace browser_sync 134 } // namespace browser_sync
131 135
132 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 136 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698