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

Side by Side Diff: device/geolocation/geolocation_delegate.h

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « device/geolocation/geolocation.gyp ('k') | device/geolocation/geolocation_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 DEVICE_GEOLOCATION_GEOLOCATION_DELEGATE_H_
6 #define DEVICE_GEOLOCATION_GEOLOCATION_DELEGATE_H_
7
8 #include <memory>
9
10 #include "base/memory/ref_counted.h"
11 #include "device/geolocation/geolocation_export.h"
12
13 namespace device {
14 class AccessTokenStore;
15 class LocationProvider;
16
17 // An embedder of Geolocation may override these class' methods to provide
18 // specific functionality.
19 class DEVICE_GEOLOCATION_EXPORT GeolocationDelegate {
20 public:
21 virtual ~GeolocationDelegate() {}
22
23 // Returns true if the location API should use network-based location
24 // approximation in addition to the system provider, if any.
25 virtual bool UseNetworkLocationProviders();
26
27 // Creates a new AccessTokenStore for geolocation. May return nullptr.
28 virtual scoped_refptr<AccessTokenStore> CreateAccessTokenStore();
29
30 // Allows an embedder to return its own LocationProvider implementation.
31 // Return nullptr to use the default one for the platform to be created.
32 // FYI: Used by an external project; please don't remove. Contact Viatcheslav
33 // Ostapenko at sl.ostapenko@samsung.com for more information.
34 virtual std::unique_ptr<LocationProvider> OverrideSystemLocationProvider();
35 };
36
37 } // namespace device
38
39 #endif // DEVICE_GEOLOCATION_GEOLOCATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « device/geolocation/geolocation.gyp ('k') | device/geolocation/geolocation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698