OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_ |
| 6 #define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import "ios/chrome/browser/updatable_config/updatable_dictionary.h" |
| 11 |
| 12 class GURL; |
| 13 |
| 14 // Implements updatable configuration for using geolocation for Omnibox |
| 15 // queries. |
| 16 @interface OmniboxGeolocationConfig : UpdatableDictionary |
| 17 |
| 18 // Returns singleton object for this class. |
| 19 + (OmniboxGeolocationConfig*)sharedInstance; |
| 20 |
| 21 // Returns YES if and only if |url| has a domain that is whitelisted for |
| 22 // geolocation for Omnibox queries. |
| 23 - (BOOL)URLHasEligibleDomain:(const GURL&)url; |
| 24 |
| 25 @end |
| 26 |
| 27 #endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_ |
OLD | NEW |