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

Side by Side Diff: components/handoff/handoff_manager.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_MANAGER_H_ 5 #ifndef COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_
6 #define COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_ 6 #define COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_
7 7
8 #include <Foundation/Foundation.h> 8 #include <Foundation/Foundation.h>
9 9
10 #include "base/mac/objc_property_releaser.h" 10 #include "base/mac/objc_property_releaser.h"
11 #include "components/handoff/handoff_utility.h"
11 #include "url/gurl.h" 12 #include "url/gurl.h"
12 13
13 @class NSUserActivity; 14 @class NSUserActivity;
14 15
15 // Maintains all of the state relevant to the Handoff feature. Allows Chrome to 16 // Maintains all of the state relevant to the Handoff feature. Allows Chrome to
16 // hand off the current active URL to other devices. 17 // hand off the current active URL to other devices.
17 @interface HandoffManager : NSObject { 18 @interface HandoffManager : NSObject {
18 @private 19 @private
19 base::mac::ObjCPropertyReleaser _propertyReleaser_HandoffManager; 20 base::mac::ObjCPropertyReleaser _propertyReleaser_HandoffManager;
20 21
21 GURL _activeURL; 22 GURL _activeURL;
22 NSUserActivity* _userActivity; 23 NSUserActivity* _userActivity;
24 handoff::Origin _origin;
23 } 25 }
24 26
25 // The active URL is defined as the URL of the most recently accessed tab. This 27 // The active URL is defined as the URL of the most recently accessed tab. This
26 // method should be called any time the active URL might have changed. This 28 // method should be called any time the active URL might have changed. This
27 // method is idempotent. 29 // method is idempotent.
28 - (void)updateActiveURL:(const GURL&)url; 30 - (void)updateActiveURL:(const GURL&)url;
29 31
30 @end 32 @end
31 33
32 #endif // COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_ 34 #endif // COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/handoff/handoff_manager.mm » ('j') | components/handoff/handoff_manager.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698