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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
6 #define CHROME_BROWSER_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
7 #pragma once
8
9 // Keep this file in sync with the .proto files in this directory.
10
11 #include "sync/protocol/session_specifics.pb.h"
12 #include "sync/protocol/sync.pb.h"
13
14 // Utility functions to get the string equivalent for some sync proto
15 // enums.
16
17 namespace browser_sync {
18
19 // The returned strings (which don't have to be freed) are in ASCII.
20 // The result of passing in an invalid enum value is undefined.
21
22 const char* GetBrowserTypeString(
23 sync_pb::SessionWindow::BrowserType browser_type);
24
25 const char* GetPageTransitionString(
26 sync_pb::TabNavigation::PageTransition page_transition);
27
28 const char* GetPageTransitionQualifierString(
29 sync_pb::TabNavigation::PageTransitionQualifier
30 page_transition_qualifier);
31
32 const char* GetUpdatesSourceString(
33 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource updates_source);
34
35 const char* GetDeviceTypeString(
36 sync_pb::SessionHeader::DeviceType device_type);
37
38 } // namespace browser_sync
39
40 #endif // CHROME_BROWSER_SYNC_PROTOCOL_PROTO_ENUM_CONVERSIONS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/DEPS ('k') | chrome/browser/sync/protocol/proto_enum_conversions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698