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

Side by Side Diff: ios/chrome/common/physical_web/physical_web_device.h

Issue 2413923002: Enable lost URL detection in the Physical Web scanner (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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ 5 #ifndef IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_
6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ 6 #define IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 @interface PhysicalWebDevice : NSObject 10 @interface PhysicalWebDevice : NSObject
11 11
12 // Initializes a physical web device. See below for the description of the 12 // Initializes a physical web device. See below for the description of the
13 // properties. 13 // properties.
14 - (instancetype)initWithURL:(NSURL*)url 14 - (instancetype)initWithURL:(NSURL*)url
15 requestURL:(NSURL*)requestURL 15 requestURL:(NSURL*)requestURL
16 icon:(NSURL*)icon 16 icon:(NSURL*)icon
17 title:(NSString*)title 17 title:(NSString*)title
18 description:(NSString*)description 18 description:(NSString*)description
19 transmitPower:(int)transmitPower 19 transmitPower:(int)transmitPower
20 rssi:(int)rssi 20 rssi:(int)rssi
21 rank:(double)rank NS_DESIGNATED_INITIALIZER; 21 rank:(double)rank
22 scanTimestamp:(NSDate*)scanTimestamp NS_DESIGNATED_INITIALIZER;
22 23
23 - (instancetype)init NS_UNAVAILABLE; 24 - (instancetype)init NS_UNAVAILABLE;
24 25
25 // |url| is the expanded URL. 26 // |url| is the expanded URL.
26 @property(nonatomic, readonly, retain) NSURL* url; 27 @property(nonatomic, readonly, retain) NSURL* url;
27 28
28 // |requestUrl| is the broadcast URL. 29 // |requestUrl| is the broadcast URL.
29 @property(nonatomic, readonly, retain) NSURL* requestURL; 30 @property(nonatomic, readonly, retain) NSURL* requestURL;
30 31
31 // |icon| is the URL of the favicon. 32 // |icon| is the URL of the favicon.
32 @property(nonatomic, readonly, retain) NSURL* icon; 33 @property(nonatomic, readonly, retain) NSURL* icon;
33 34
34 // |title| is the title of the webpage. 35 // |title| is the title of the webpage.
35 @property(nonatomic, readonly, retain) NSString* title; 36 @property(nonatomic, readonly, retain) NSString* title;
36 37
37 // |description| is a short text description of the webpage content. 38 // |description| is a short text description of the webpage content.
38 @property(nonatomic, readonly, retain) NSString* description; 39 @property(nonatomic, readonly, retain) NSString* description;
39 40
40 // |transmitPower| is the UriBeacon Tx Power Level. 41 // |transmitPower| is the UriBeacon Tx Power Level.
41 @property(nonatomic, readonly) int transmitPower; 42 @property(nonatomic, readonly) int transmitPower;
42 43
43 // |rssi| is the received signal strength indicator (RSSI) of the peripheral, in 44 // |rssi| is the received signal strength indicator (RSSI) of the peripheral, in
44 // decibels. 45 // decibels.
45 @property(nonatomic, readonly) int rssi; 46 @property(nonatomic, readonly) int rssi;
46 47
47 // |rank| of the physical web device returned by the server. 48 // |rank| of the physical web device returned by the server.
48 @property(nonatomic, readonly) double rank; 49 @property(nonatomic, readonly) double rank;
49 50
51 // |scanTimestamp| is the time the URL was most recently seen.
52 @property(nonatomic, retain) NSDate* scanTimestamp;
53
50 @end 54 @end
51 55
52 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_ 56 #endif // IOS_CHROME_COMMON_PHYSICAL_WEB_PHYSICAL_WEB_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698