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

Unified Diff: chrome/browser/sync/protocol/proto_value_conversions.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/protocol/proto_value_conversions.h
diff --git a/chrome/browser/sync/protocol/proto_value_conversions.h b/chrome/browser/sync/protocol/proto_value_conversions.h
deleted file mode 100644
index fb323266f4902fd3df690db5af50c44044a37ce7..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/protocol/proto_value_conversions.h
+++ /dev/null
@@ -1,142 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Keep this file in sync with the .proto files in this directory.
-
-#ifndef CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
-#define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_
-#pragma once
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace sync_pb {
-class AppNotification;
-class AppNotificationSettings;
-class AppSettingSpecifics;
-class AppSpecifics;
-class AutofillProfileSpecifics;
-class AutofillSpecifics;
-class BookmarkSpecifics;
-class DeviceInformation;
-class EncryptedData;
-class EntitySpecifics;
-class ExtensionSettingSpecifics;
-class ExtensionSpecifics;
-class NigoriSpecifics;
-class PasswordSpecifics;
-class PasswordSpecificsData;
-class PreferenceSpecifics;
-class SearchEngineSpecifics;
-class SessionHeader;
-class SessionSpecifics;
-class SessionTab;
-class SessionWindow;
-class TabNavigation;
-class ThemeSpecifics;
-class TypedUrlSpecifics;
-} // namespace sync_pb
-
-// Utility functions to convert sync protocol buffers to dictionaries.
-// Each protocol field is mapped to a key of the same name. Repeated
-// fields are mapped to array values and sub-messages are mapped to
-// sub-dictionary values.
-//
-// TODO(akalin): Add has_* information.
-//
-// TODO(akalin): Improve enum support.
-
-namespace browser_sync {
-
-// Ownership of all returned DictionaryValues are transferred to the
-// caller.
-
-// TODO(akalin): Perhaps extend this to decrypt?
-base::DictionaryValue* EncryptedDataToValue(
- const sync_pb::EncryptedData& encrypted_data);
-
-// Sub-protocol of AppSpecifics.
-base::DictionaryValue* AppSettingsToValue(
- const sync_pb::AppNotificationSettings& app_notification_settings);
-
-// Sub-protocols of SessionSpecifics.
-
-base::DictionaryValue* SessionHeaderToValue(
- const sync_pb::SessionHeader& session_header);
-
-base::DictionaryValue* SessionTabToValue(
- const sync_pb::SessionTab& session_tab);
-
-base::DictionaryValue* SessionWindowToValue(
- const sync_pb::SessionWindow& session_window);
-
-base::DictionaryValue* TabNavigationToValue(
- const sync_pb::TabNavigation& tab_navigation);
-
-// Sub-protocol of PasswordSpecifics.
-
-base::DictionaryValue* PasswordSpecificsDataToValue(
- const sync_pb::PasswordSpecificsData& password_specifics_data);
-
-// Sub-protocol of NigoriSpecifics.
-
-base::DictionaryValue* DeviceInformationToValue(
- const sync_pb::DeviceInformation& device_information);
-
-// Main *SpecificsToValue functions.
-
-base::DictionaryValue* AppNotificationToValue(
- const sync_pb::AppNotification& app_notification_specifics);
-
-base::DictionaryValue* AppSettingSpecificsToValue(
- const sync_pb::AppSettingSpecifics& app_setting_specifics);
-
-base::DictionaryValue* AppSpecificsToValue(
- const sync_pb::AppSpecifics& app_specifics);
-
-base::DictionaryValue* AutofillSpecificsToValue(
- const sync_pb::AutofillSpecifics& autofill_specifics);
-
-base::DictionaryValue* AutofillProfileSpecificsToValue(
- const sync_pb::AutofillProfileSpecifics& autofill_profile_specifics);
-
-base::DictionaryValue* BookmarkSpecificsToValue(
- const sync_pb::BookmarkSpecifics& bookmark_specifics);
-
-base::DictionaryValue* ExtensionSettingSpecificsToValue(
- const sync_pb::ExtensionSettingSpecifics& extension_setting_specifics);
-
-base::DictionaryValue* ExtensionSpecificsToValue(
- const sync_pb::ExtensionSpecifics& extension_specifics);
-
-base::DictionaryValue* NigoriSpecificsToValue(
- const sync_pb::NigoriSpecifics& nigori_specifics);
-
-base::DictionaryValue* PasswordSpecificsToValue(
- const sync_pb::PasswordSpecifics& password_specifics);
-
-base::DictionaryValue* PreferenceSpecificsToValue(
- const sync_pb::PreferenceSpecifics& password_specifics);
-
-base::DictionaryValue* SearchEngineSpecificsToValue(
- const sync_pb::SearchEngineSpecifics& search_engine_specifics);
-
-base::DictionaryValue* SessionSpecificsToValue(
- const sync_pb::SessionSpecifics& session_specifics);
-
-base::DictionaryValue* ThemeSpecificsToValue(
- const sync_pb::ThemeSpecifics& theme_specifics);
-
-base::DictionaryValue* TypedUrlSpecificsToValue(
- const sync_pb::TypedUrlSpecifics& typed_url_specifics);
-
-// Any present extensions are mapped to sub-dictionary values with the
-// key equal to the extension name.
-base::DictionaryValue* EntitySpecificsToValue(
- const sync_pb::EntitySpecifics& specifics);
-
-} // namespace browser_sync
-
-#endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_VALUE_CONVERSIONS_H_

Powered by Google App Engine
This is Rietveld 408576698