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

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

Issue 7150023: Add protobuffer and model type for syncing custom search engines. Includes all boilerplate helper... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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) 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 class DictionaryValue; 11 class DictionaryValue;
12 12
13 namespace sync_pb { 13 namespace sync_pb {
14 class AppSpecifics; 14 class AppSpecifics;
15 class AutofillCreditCardSpecifics; 15 class AutofillCreditCardSpecifics;
16 class AutofillProfileSpecifics; 16 class AutofillProfileSpecifics;
17 class AutofillSpecifics; 17 class AutofillSpecifics;
18 class BookmarkSpecifics; 18 class BookmarkSpecifics;
19 class EncryptedData; 19 class EncryptedData;
20 class EntitySpecifics; 20 class EntitySpecifics;
21 class ExtensionSpecifics; 21 class ExtensionSpecifics;
22 class NigoriSpecifics; 22 class NigoriSpecifics;
23 class PasswordSpecifics; 23 class PasswordSpecifics;
24 class PasswordSpecificsData; 24 class PasswordSpecificsData;
25 class PreferenceSpecifics; 25 class PreferenceSpecifics;
26 class SearchEngineSpecifics;
26 class SessionHeader; 27 class SessionHeader;
27 class SessionSpecifics; 28 class SessionSpecifics;
28 class SessionTab; 29 class SessionTab;
29 class SessionWindow; 30 class SessionWindow;
30 class TabNavigation; 31 class TabNavigation;
31 class ThemeSpecifics; 32 class ThemeSpecifics;
32 class TypedUrlSpecifics; 33 class TypedUrlSpecifics;
33 } // namespace sync_pb 34 } // namespace sync_pb
34 35
35 // Utility functions to convert sync protocol buffers to dictionaries. 36 // Utility functions to convert sync protocol buffers to dictionaries.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 93
93 DictionaryValue* NigoriSpecificsToValue( 94 DictionaryValue* NigoriSpecificsToValue(
94 const sync_pb::NigoriSpecifics& nigori_specifics); 95 const sync_pb::NigoriSpecifics& nigori_specifics);
95 96
96 DictionaryValue* PasswordSpecificsToValue( 97 DictionaryValue* PasswordSpecificsToValue(
97 const sync_pb::PasswordSpecifics& password_specifics); 98 const sync_pb::PasswordSpecifics& password_specifics);
98 99
99 DictionaryValue* PreferenceSpecificsToValue( 100 DictionaryValue* PreferenceSpecificsToValue(
100 const sync_pb::PreferenceSpecifics& password_specifics); 101 const sync_pb::PreferenceSpecifics& password_specifics);
101 102
103 DictionaryValue* SearchEngineSpecificsToValue(
104 const sync_pb::SearchEngineSpecifics& search_engine_specifics);
105
102 DictionaryValue* SessionSpecificsToValue( 106 DictionaryValue* SessionSpecificsToValue(
103 const sync_pb::SessionSpecifics& session_specifics); 107 const sync_pb::SessionSpecifics& session_specifics);
104 108
105 DictionaryValue* ThemeSpecificsToValue( 109 DictionaryValue* ThemeSpecificsToValue(
106 const sync_pb::ThemeSpecifics& theme_specifics); 110 const sync_pb::ThemeSpecifics& theme_specifics);
107 111
108 DictionaryValue* TypedUrlSpecificsToValue( 112 DictionaryValue* TypedUrlSpecificsToValue(
109 const sync_pb::TypedUrlSpecifics& typed_url_specifics); 113 const sync_pb::TypedUrlSpecifics& typed_url_specifics);
110 114
111 // Any present extensions are mapped to sub-dictionary values with the 115 // Any present extensions are mapped to sub-dictionary values with the
112 // key equal to the extension name. 116 // key equal to the extension name.
113 DictionaryValue* EntitySpecificsToValue( 117 DictionaryValue* EntitySpecificsToValue(
114 const sync_pb::EntitySpecifics& entity_specifics); 118 const sync_pb::EntitySpecifics& entity_specifics);
115 119
116 } // namespace browser_sync 120 } // namespace browser_sync
117 121
118 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_ 122 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/nigori_specifics.proto ('k') | chrome/browser/sync/protocol/proto_value_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698