blob: 1eac6d10e2e4eb15e2d4111e679b86024f6d09f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_
#define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_
#import <Foundation/Foundation.h>
#import "ios/chrome/browser/updatable_config/updatable_dictionary.h"
class GURL;
// Implements updatable configuration for using geolocation for Omnibox
// queries.
@interface OmniboxGeolocationConfig : UpdatableDictionary
// Returns singleton object for this class.
+ (OmniboxGeolocationConfig*)sharedInstance;
// Returns YES if and only if |url| has a domain that is whitelisted for
// geolocation for Omnibox queries.
- (BOOL)URLHasEligibleDomain:(const GURL&)url;
@end
#endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_CONFIG_H_
|