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

Side by Side Diff: components/sync/protocol/proto_enum_conversions.h

Issue 2881603005: [Sync] Alphabetize proto conversion files. (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 5 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
7 7
8 #include "components/sync/protocol/app_list_specifics.pb.h" 8 #include "components/sync/protocol/app_list_specifics.pb.h"
9 #include "components/sync/protocol/app_specifics.pb.h" 9 #include "components/sync/protocol/app_specifics.pb.h"
10 #include "components/sync/protocol/client_debug_info.pb.h" 10 #include "components/sync/protocol/client_debug_info.pb.h"
11 #include "components/sync/protocol/reading_list_specifics.pb.h" 11 #include "components/sync/protocol/reading_list_specifics.pb.h"
12 #include "components/sync/protocol/session_specifics.pb.h" 12 #include "components/sync/protocol/session_specifics.pb.h"
13 #include "components/sync/protocol/sync.pb.h" 13 #include "components/sync/protocol/sync.pb.h"
14 14
15 // Keep this file in sync with the .proto files in this directory. 15 // Keep this file in sync with the .proto files in this directory.
16 // 16 //
17 // Utility functions to get the string equivalent for some sync proto 17 // Utility functions to get the string equivalent for some sync proto
18 // enums. 18 // enums.
19 19
20 namespace syncer { 20 namespace syncer {
21 21
22 // The returned strings (which don't have to be freed) are in ASCII. 22 // The returned strings (which don't have to be freed) are in ASCII.
23 // The result of passing in an invalid enum value is undefined. 23 // The result of passing in an invalid enum value is undefined.
24 24
25 const char* ProtoEnumToString( 25 const char* ProtoEnumToString(
26 sync_pb::AppListSpecifics::AppListItemType item_type); 26 sync_pb::AppListSpecifics::AppListItemType item_type);
27 27
28 const char* ProtoEnumToString(sync_pb::AppSpecifics::LaunchType launch_type);
29
28 const char* ProtoEnumToString( 30 const char* ProtoEnumToString(
29 sync_pb::SessionWindow::BrowserType browser_type); 31 sync_pb::AutofillWalletSpecifics::WalletInfoType wallet_info_type);
32
33 const char* ProtoEnumToString(
34 sync_pb::CommitResponse::ResponseType response_type);
35
36 const char* ProtoEnumToString(
37 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source);
38
39 const char* ProtoEnumToString(sync_pb::NigoriSpecifics::PassphraseType type);
40
41 const char* ProtoEnumToString(
42 sync_pb::ReadingListSpecifics::ReadingListEntryStatus status);
43
44 const char* ProtoEnumToString(sync_pb::SessionTab::FaviconType favicon_type);
45
46 const char* ProtoEnumToString(sync_pb::SessionWindow::BrowserType browser_type);
47
48 const char* ProtoEnumToString(sync_pb::SyncEnums::Action action);
49
50 const char* ProtoEnumToString(sync_pb::SyncEnums::DeviceType device_type);
51
52 const char* ProtoEnumToString(sync_pb::SyncEnums::ErrorType error_type);
53
54 const char* ProtoEnumToString(sync_pb::SyncEnums::GetUpdatesOrigin origin);
30 55
31 const char* ProtoEnumToString( 56 const char* ProtoEnumToString(
32 sync_pb::SyncEnums::PageTransition page_transition); 57 sync_pb::SyncEnums::PageTransition page_transition);
33 58
34 const char* ProtoEnumToString( 59 const char* ProtoEnumToString(
35 sync_pb::SyncEnums::PageTransitionRedirectType redirect_type); 60 sync_pb::SyncEnums::PageTransitionRedirectType redirect_type);
36 61
37 const char* ProtoEnumToString( 62 const char* ProtoEnumToString(sync_pb::SyncEnums::SingletonDebugEventType type);
38 sync_pb::WifiCredentialSpecifics::SecurityClass security_class); 63
64 const char* ProtoEnumToString(sync_pb::TabNavigation::BlockedState state);
65
66 const char* ProtoEnumToString(sync_pb::TabNavigation::PasswordState state);
39 67
40 const char* ProtoEnumToString( 68 const char* ProtoEnumToString(
41 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source); 69 sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class);
42
43 const char* ProtoEnumToString(sync_pb::SyncEnums::GetUpdatesOrigin origin);
44
45 const char* ProtoEnumToString(
46 sync_pb::ReadingListSpecifics::ReadingListEntryStatus status);
47
48 const char* ProtoEnumToString(
49 sync_pb::CommitResponse::ResponseType response_type);
50
51 const char* ProtoEnumToString(sync_pb::SyncEnums::ErrorType error_type);
52
53 const char* ProtoEnumToString(sync_pb::SyncEnums::Action action);
54
55 const char* ProtoEnumToString(sync_pb::AppSpecifics::LaunchType launch_type);
56
57 const char* ProtoEnumToString(
58 sync_pb::AutofillWalletSpecifics::WalletInfoType wallet_info_type);
59
60 const char* ProtoEnumToString(
61 sync_pb::WalletMetadataSpecifics::Type wallet_metadata_type);
62 70
63 const char* ProtoEnumToString( 71 const char* ProtoEnumToString(
64 sync_pb::WalletMaskedCreditCard::WalletCardStatus wallet_card_status); 72 sync_pb::WalletMaskedCreditCard::WalletCardStatus wallet_card_status);
65 73
66 const char* ProtoEnumToString( 74 const char* ProtoEnumToString(
67 sync_pb::WalletMaskedCreditCard::WalletCardType wallet_card_type); 75 sync_pb::WalletMaskedCreditCard::WalletCardType wallet_card_type);
68 76
69 const char* ProtoEnumToString( 77 const char* ProtoEnumToString(
70 sync_pb::WalletMaskedCreditCard::WalletCardClass wallet_card_class); 78 sync_pb::WalletMetadataSpecifics::Type wallet_metadata_type);
71
72 const char* ProtoEnumToString(sync_pb::SyncEnums::DeviceType device_type);
73
74 const char* ProtoEnumToString(sync_pb::SessionTab::FaviconType favicon_type);
75
76 const char* ProtoEnumToString(sync_pb::NigoriSpecifics::PassphraseType type);
77 79
78 const char* ProtoEnumToString( 80 const char* ProtoEnumToString(
79 sync_pb::SyncEnums::SingletonDebugEventType type); 81 sync_pb::WifiCredentialSpecifics::SecurityClass security_class);
80
81 const char* ProtoEnumToString(sync_pb::TabNavigation::BlockedState state);
82 const char* ProtoEnumToString(sync_pb::TabNavigation::PasswordState state);
83 82
84 } // namespace syncer 83 } // namespace syncer
85 84
86 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 85 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « no previous file | components/sync/protocol/proto_enum_conversions.cc » ('j') | components/sync/protocol/proto_value_conversions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698