1 // Copyright 2013 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 IOS_CHROME_BROWSER_GEOLOCATION_CLLOCATION_OMNIBOX_GEOLOCATION_H_
6 #define IOS_CHROME_BROWSER_GEOLOCATION_CLLOCATION_OMNIBOX_GEOLOCATION_H_
8 #import <CoreLocation/CoreLocation.h>
10 @interface
CLLocation (OmniboxGeolocation
)
12 // The elapsed time in seconds to acquire this location. Defaults to 0 if not
14 @
property(nonatomic
, assign
, setter
=cr_setAcquisitionInterval
:)
15 NSTimeInterval cr_acquisitionInterval
;
17 // Returns YES if and only if this location is fresh enough to use for an
19 - (BOOL
)cr_isFreshEnough
;
21 // Returns YES if and only if this location is old enough to try refreshing the
23 - (BOOL
)cr_shouldRefresh
;
27 #endif // IOS_CHROME_BROWSER_GEOLOCATION_CLLOCATION_OMNIBOX_GEOLOCATION_H_