Update V8 to version 4.6.35.
[chromium-blink-merge.git] / components / handoff / handoff_manager.h
blobb29394d717391d473795d868e55b6d635437c01b
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.
5 #ifndef COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_
6 #define COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_
8 #include <Foundation/Foundation.h>
10 #include "base/mac/objc_property_releaser.h"
11 #include "components/handoff/handoff_utility.h"
12 #include "url/gurl.h"
14 @class NSUserActivity;
16 // Maintains all of the state relevant to the Handoff feature. Allows Chrome to
17 // hand off the current active URL to other devices.
18 @interface HandoffManager : NSObject {
19 @private
20 base::mac::ObjCPropertyReleaser _propertyReleaser_HandoffManager;
22 GURL _activeURL;
23 NSUserActivity* _userActivity;
24 handoff::Origin _origin;
27 // The active URL is defined as the URL of the most recently accessed tab. This
28 // method should be called any time the active URL might have changed. This
29 // method is idempotent.
30 - (void)updateActiveURL:(const GURL&)url;
32 @end
34 #endif // COMPONENTS_HANDOFF_HANDOFF_MANAGER_H_