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

Unified Diff: sync/protocol/proto_enum_conversions.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/protocol/priority_preference_specifics.proto ('k') | sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/protocol/proto_enum_conversions.h
diff --git a/sync/protocol/proto_enum_conversions.h b/sync/protocol/proto_enum_conversions.h
deleted file mode 100644
index c379d01a211e4320bd5480df000b31111e853dbd..0000000000000000000000000000000000000000
--- a/sync/protocol/proto_enum_conversions.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright 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.
-
-#ifndef SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
-#define SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
-
-// Keep this file in sync with the .proto files in this directory.
-
-#include "sync/base/sync_export.h"
-#include "sync/protocol/app_list_specifics.pb.h"
-#include "sync/protocol/app_specifics.pb.h"
-#include "sync/protocol/client_debug_info.pb.h"
-#include "sync/protocol/session_specifics.pb.h"
-#include "sync/protocol/sync.pb.h"
-
-// Utility functions to get the string equivalent for some sync proto
-// enums.
-
-namespace syncer {
-
-// The returned strings (which don't have to be freed) are in ASCII.
-// The result of passing in an invalid enum value is undefined.
-
-SYNC_EXPORT const char* GetAppListItemTypeString(
- sync_pb::AppListSpecifics::AppListItemType item_type);
-
-SYNC_EXPORT const char* GetBrowserTypeString(
- sync_pb::SessionWindow::BrowserType browser_type);
-
-SYNC_EXPORT const char* GetPageTransitionString(
- sync_pb::SyncEnums::PageTransition page_transition);
-
-SYNC_EXPORT const char* GetPageTransitionRedirectTypeString(
- sync_pb::SyncEnums::PageTransitionRedirectType redirect_type);
-
-SYNC_EXPORT const char* GetWifiCredentialSecurityClassString(
- sync_pb::WifiCredentialSpecifics::SecurityClass security_class);
-
-SYNC_EXPORT const char* GetUpdatesSourceString(
- sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source);
-
-SYNC_EXPORT const char* GetUpdatesOriginString(
- sync_pb::SyncEnums::GetUpdatesOrigin origin);
-
-SYNC_EXPORT const char* GetResponseTypeString(
- sync_pb::CommitResponse::ResponseType response_type);
-
-SYNC_EXPORT const char* GetErrorTypeString(
- sync_pb::SyncEnums::ErrorType error_type);
-
-SYNC_EXPORT const char* GetActionString(sync_pb::SyncEnums::Action action);
-
-SYNC_EXPORT const char* GetLaunchTypeString(
- sync_pb::AppSpecifics::LaunchType launch_type);
-
-SYNC_EXPORT const char* GetWalletInfoTypeString(
- sync_pb::AutofillWalletSpecifics::WalletInfoType wallet_info_type);
-
-SYNC_EXPORT const char* GetWalletMetadataTypeString(
- sync_pb::WalletMetadataSpecifics::Type wallet_metadata_type);
-
-SYNC_EXPORT const char* GetWalletCardStatusString(
- sync_pb::WalletMaskedCreditCard::WalletCardStatus wallet_card_status);
-
-SYNC_EXPORT const char* GetWalletCardTypeString(
- sync_pb::WalletMaskedCreditCard::WalletCardType wallet_card_type);
-
-const char* GetDeviceTypeString(sync_pb::SyncEnums::DeviceType device_type);
-
-const char* GetFaviconTypeString(sync_pb::SessionTab::FaviconType favicon_type);
-
-const char* PassphraseTypeString(sync_pb::NigoriSpecifics::PassphraseType type);
-
-const char* SingletonDebugEventTypeString(
- sync_pb::SyncEnums::SingletonDebugEventType type);
-
-const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state);
-
-} // namespace syncer
-
-#endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
« no previous file with comments | « sync/protocol/priority_preference_specifics.proto ('k') | sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698