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

Side by Side Diff: components/handoff/handoff_utility.h

Issue 1000723003: handoff: Fix the origin so that it correctly reflects the sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from avi. Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HANDOFF_HANDOFF_UTILITY_H_ 5 #ifndef COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_
6 #define COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_ 6 #define COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 namespace handoff { 10 namespace handoff {
(...skipping 17 matching lines...) Expand all
28 enum Origin { 28 enum Origin {
29 ORIGIN_UNKNOWN = 0, 29 ORIGIN_UNKNOWN = 0,
30 ORIGIN_IOS = 1, 30 ORIGIN_IOS = 1,
31 ORIGIN_MAC = 2, 31 ORIGIN_MAC = 2,
32 ORIGIN_COUNT 32 ORIGIN_COUNT
33 }; 33 };
34 34
35 // Returns ORIGIN_UNKNOWN if |string| is nil or unrecognized. 35 // Returns ORIGIN_UNKNOWN if |string| is nil or unrecognized.
36 Origin OriginFromString(NSString* string); 36 Origin OriginFromString(NSString* string);
37 37
38 // Returns nil if |origin| is not ORIGIN_IOS or ORIGIN_MAC.
39 NSString* StringFromOrigin(Origin origin);
40
38 } // namespace handoff 41 } // namespace handoff
39 42
40 #endif // COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_ 43 #endif // COMPONENTS_HANDOFF_HANDOFF_UTILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698