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

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

Issue 11624037: [sync] Componentize sync: Part 6: Add more SYNC_EXPORTs to files in src/sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (no code changes) Created 7 years, 11 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
« no previous file with comments | « sync/notifier/sync_system_resources.h ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/session_specifics.pb.h" 12 #include "sync/protocol/session_specifics.pb.h"
13 #include "sync/protocol/sync.pb.h" 13 #include "sync/protocol/sync.pb.h"
14 14
15 // Utility functions to get the string equivalent for some sync proto 15 // Utility functions to get the string equivalent for some sync proto
16 // enums. 16 // enums.
17 17
18 namespace syncer { 18 namespace syncer {
19 19
20 // The returned strings (which don't have to be freed) are in ASCII. 20 // 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. 21 // The result of passing in an invalid enum value is undefined.
22 22
23 const char* GetBrowserTypeString( 23 SYNC_EXPORT_PRIVATE const char* GetBrowserTypeString(
24 sync_pb::SessionWindow::BrowserType browser_type); 24 sync_pb::SessionWindow::BrowserType browser_type);
25 25
26 const char* GetPageTransitionString( 26 SYNC_EXPORT_PRIVATE const char* GetPageTransitionString(
27 sync_pb::SyncEnums::PageTransition page_transition); 27 sync_pb::SyncEnums::PageTransition page_transition);
28 28
29 const char* GetPageTransitionRedirectTypeString( 29 SYNC_EXPORT_PRIVATE const char* GetPageTransitionRedirectTypeString(
30 sync_pb::SyncEnums::PageTransitionRedirectType 30 sync_pb::SyncEnums::PageTransitionRedirectType
31 redirect_type); 31 redirect_type);
32 32
33 SYNC_EXPORT const char* GetUpdatesSourceString( 33 SYNC_EXPORT const char* GetUpdatesSourceString(
34 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source); 34 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source);
35 35
36 const char* GetResponseTypeString( 36 SYNC_EXPORT_PRIVATE const char* GetResponseTypeString(
37 sync_pb::CommitResponse::ResponseType response_type); 37 sync_pb::CommitResponse::ResponseType response_type);
38 38
39 const char* GetErrorTypeString(sync_pb::SyncEnums::ErrorType error_type); 39 SYNC_EXPORT_PRIVATE const char* GetErrorTypeString(
40 sync_pb::SyncEnums::ErrorType error_type);
40 41
41 const char* GetActionString(sync_pb::SyncEnums::Action action); 42 SYNC_EXPORT_PRIVATE const char* GetActionString(
43 sync_pb::SyncEnums::Action action);
42 44
43 const char* GetDeviceTypeString( 45 const char* GetDeviceTypeString(
44 sync_pb::SyncEnums::DeviceType device_type); 46 sync_pb::SyncEnums::DeviceType device_type);
45 47
46 const char* GetFaviconTypeString( 48 const char* GetFaviconTypeString(
47 sync_pb::SessionTab::FaviconType favicon_type); 49 sync_pb::SessionTab::FaviconType favicon_type);
48 50
49 const char* PassphraseTypeString( 51 const char* PassphraseTypeString(
50 sync_pb::NigoriSpecifics::PassphraseType type); 52 sync_pb::NigoriSpecifics::PassphraseType type);
51 53
52 const char* SingletonEventTypeString( 54 const char* SingletonEventTypeString(
53 sync_pb::DebugEventInfo::SingletonEventType type); 55 sync_pb::DebugEventInfo::SingletonEventType type);
54 56
55 } // namespace syncer 57 } // namespace syncer
56 58
57 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_ 59 #endif // SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « sync/notifier/sync_system_resources.h ('k') | sync/protocol/proto_value_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698