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

Unified Diff: ios/chrome/browser/geolocation/omnibox_geolocation_config.h

Issue 1103293002: [iOS] Upstream iOS geolocation code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 5 years, 8 months 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/geolocation/omnibox_geolocation_config.h
diff --git a/ios/chrome/browser/geolocation/omnibox_geolocation_config.h b/ios/chrome/browser/geolocation/omnibox_geolocation_config.h
new file mode 100644
index 0000000000000000000000000000000000000000..1eac6d10e2e4eb15e2d4111e679b86024f6d09f6
--- /dev/null
+++ b/ios/chrome/browser/geolocation/omnibox_geolocation_config.h
@@ -0,0 +1,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_

Powered by Google App Engine
This is Rietveld 408576698