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

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

Issue 12089103: [Sync] Add favicon datatype proto support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Created 7 years, 10 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 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 SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 5 #ifndef SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
6 #define SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 6 #define 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 "sync/base/sync_export.h" 10 #include "sync/base/sync_export.h"
11 #include "sync/protocol/client_debug_info.pb.h" 11 #include "sync/protocol/client_debug_info.pb.h"
12 #include "sync/protocol/favicon_specifics.pb.h"
12 #include "sync/protocol/session_specifics.pb.h" 13 #include "sync/protocol/session_specifics.pb.h"
13 #include "sync/protocol/sync.pb.h" 14 #include "sync/protocol/sync.pb.h"
14 15
15 // Utility functions to get the string equivalent for some sync proto 16 // Utility functions to get the string equivalent for some sync proto
16 // enums. 17 // enums.
17 18
18 namespace syncer { 19 namespace syncer {
19 20
20 // The returned strings (which don't have to be freed) are in ASCII. 21 // The returned strings (which don't have to be freed) are in ASCII.
21 // The result of passing in an invalid enum value is undefined. 22 // The result of passing in an invalid enum value is undefined.
(...skipping 19 matching lines...) Expand all
41 42
42 SYNC_EXPORT_PRIVATE const char* GetActionString( 43 SYNC_EXPORT_PRIVATE const char* GetActionString(
43 sync_pb::SyncEnums::Action action); 44 sync_pb::SyncEnums::Action action);
44 45
45 const char* GetDeviceTypeString( 46 const char* GetDeviceTypeString(
46 sync_pb::SyncEnums::DeviceType device_type); 47 sync_pb::SyncEnums::DeviceType device_type);
47 48
48 const char* GetFaviconTypeString( 49 const char* GetFaviconTypeString(
49 sync_pb::SessionTab::FaviconType favicon_type); 50 sync_pb::SessionTab::FaviconType favicon_type);
50 51
52 const char* GetIconTypeString(
53 sync_pb::FaviconData::IconType icon_type);
54
51 const char* PassphraseTypeString( 55 const char* PassphraseTypeString(
52 sync_pb::NigoriSpecifics::PassphraseType type); 56 sync_pb::NigoriSpecifics::PassphraseType type);
53 57
54 const char* SingletonEventTypeString( 58 const char* SingletonEventTypeString(
55 sync_pb::DebugEventInfo::SingletonEventType type); 59 sync_pb::DebugEventInfo::SingletonEventType type);
56 60
57 } // namespace syncer 61 } // namespace syncer
58 62
59 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 63 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698