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

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

Issue 2241583003: Creating protobuf for reading list sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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 // Keep this file in sync with the .proto files in this directory. 8 // Keep this file in sync with the .proto files in this directory.
9 9
10 #include "components/sync/protocol/app_list_specifics.pb.h" 10 #include "components/sync/protocol/app_list_specifics.pb.h"
11 #include "components/sync/protocol/app_specifics.pb.h" 11 #include "components/sync/protocol/app_specifics.pb.h"
12 #include "components/sync/protocol/client_debug_info.pb.h" 12 #include "components/sync/protocol/client_debug_info.pb.h"
13 #include "components/sync/protocol/reading_list_specifics.pb.h"
13 #include "components/sync/protocol/session_specifics.pb.h" 14 #include "components/sync/protocol/session_specifics.pb.h"
14 #include "components/sync/protocol/sync.pb.h" 15 #include "components/sync/protocol/sync.pb.h"
15 16
16 // Utility functions to get the string equivalent for some sync proto 17 // Utility functions to get the string equivalent for some sync proto
17 // enums. 18 // enums.
18 19
19 namespace syncer { 20 namespace syncer {
20 21
21 // 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.
22 // The result of passing in an invalid enum value is undefined. 23 // The result of passing in an invalid enum value is undefined.
(...skipping 11 matching lines...) Expand all
34 sync_pb::SyncEnums::PageTransitionRedirectType redirect_type); 35 sync_pb::SyncEnums::PageTransitionRedirectType redirect_type);
35 36
36 const char* GetWifiCredentialSecurityClassString( 37 const char* GetWifiCredentialSecurityClassString(
37 sync_pb::WifiCredentialSpecifics::SecurityClass security_class); 38 sync_pb::WifiCredentialSpecifics::SecurityClass security_class);
38 39
39 const char* GetUpdatesSourceString( 40 const char* GetUpdatesSourceString(
40 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source); 41 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source);
41 42
42 const char* GetUpdatesOriginString(sync_pb::SyncEnums::GetUpdatesOrigin origin); 43 const char* GetUpdatesOriginString(sync_pb::SyncEnums::GetUpdatesOrigin origin);
43 44
45 const char* GetReadingListEntryStatusString(
46 sync_pb::ReadingListSpecifics::ReadingListEntryStatus status);
47
44 const char* GetResponseTypeString( 48 const char* GetResponseTypeString(
45 sync_pb::CommitResponse::ResponseType response_type); 49 sync_pb::CommitResponse::ResponseType response_type);
46 50
47 const char* GetErrorTypeString(sync_pb::SyncEnums::ErrorType error_type); 51 const char* GetErrorTypeString(sync_pb::SyncEnums::ErrorType error_type);
48 52
49 const char* GetActionString(sync_pb::SyncEnums::Action action); 53 const char* GetActionString(sync_pb::SyncEnums::Action action);
50 54
51 const char* GetLaunchTypeString(sync_pb::AppSpecifics::LaunchType launch_type); 55 const char* GetLaunchTypeString(sync_pb::AppSpecifics::LaunchType launch_type);
52 56
53 const char* GetWalletInfoTypeString( 57 const char* GetWalletInfoTypeString(
(...skipping 16 matching lines...) Expand all
70 74
71 const char* SingletonDebugEventTypeString( 75 const char* SingletonDebugEventTypeString(
72 sync_pb::SyncEnums::SingletonDebugEventType type); 76 sync_pb::SyncEnums::SingletonDebugEventType type);
73 77
74 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state); 78 const char* GetBlockedStateString(sync_pb::TabNavigation::BlockedState state);
75 const char* GetPasswordStateString(sync_pb::TabNavigation::PasswordState state); 79 const char* GetPasswordStateString(sync_pb::TabNavigation::PasswordState state);
76 80
77 } // namespace syncer 81 } // namespace syncer
78 82
79 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 83 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « components/sync/protocol/nigori_specifics.proto ('k') | components/sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698