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_OMNIBOX_GEOLOCATION_CONFIG_H_
6 #define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_
8 #import <Foundation/Foundation.h>
10 #import "ios/chrome/browser/updatable_config/updatable_dictionary.h"
14 // Implements updatable configuration for using geolocation for Omnibox
16 @interface OmniboxGeolocationConfig
: UpdatableDictionary
18 // Returns singleton object for this class.
19 + (OmniboxGeolocationConfig
*)sharedInstance
;
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
;
27 #endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_