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

Side by Side Diff: ios/chrome/browser/device_sharing/handoff_manager.h

Issue 2484703003: [ios] Adds code to support the iOS Handoff feature. (Closed)
Patch Set: Fixes. Created 4 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_DEVICE_SHARING_HANDOFF_MANAGER_H_
6 #define IOS_CHROME_BROWSER_DEVICE_SHARING_HANDOFF_MANAGER_H_
7
8 #include <Foundation/Foundation.h>
9
10 class GURL;
11
12 namespace user_prefs {
13 class PrefRegistrySyncable;
14 } // namespace user_prefs
15
16 // Maintains all of the state relevant to the Handoff feature. Allows Chrome to
17 // hand off the current active URL to the default browser of other devices.
18 @interface HandoffManager : NSObject
erikchen 2016/11/07 19:02:58 isn't there already a HandoffManager? components/
rohitrao (ping after 24h) 2016/11/08 02:19:42 Acknowledged.
19
20 // Registers preferences related to Handoff.
21 + (void)registerBrowserStatePrefs:(user_prefs::PrefRegistrySyncable*)registry;
22
23 // The active URL is defined as the URL of the most recently accessed tab. This
24 // method should be called any time the active URL might have changed. This
25 // method is idempotent.
26 - (void)updateActiveURL:(const GURL&)url;
27
28 @end
29
30 @interface HandoffManager (TestingOnly)
31 - (NSURL*)userActivityWebpageURL;
32 @end
33
34 #endif // IOS_CHROME_BROWSER_DEVICE_SHARING_HANDOFF_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698