Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |