OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/geolocation/location_arbitrator_impl.h" | 5 #include "content/browser/geolocation/location_arbitrator_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
11 #include "content/browser/geolocation/network_location_provider.h" | 11 #include "content/browser/geolocation/network_location_provider.h" |
12 #include "content/public/browser/access_token_store.h" | 12 #include "content/public/browser/access_token_store.h" |
13 #include "content/public/browser/content_browser_client.h" | 13 #include "content/public/browser/content_browser_client.h" |
14 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "url/gurl.h" |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 namespace { | 18 namespace { |
19 | 19 |
20 const char* kDefaultNetworkProviderUrl = | 20 const char* kDefaultNetworkProviderUrl = |
21 "https://www.googleapis.com/geolocation/v1/geolocate"; | 21 "https://www.googleapis.com/geolocation/v1/geolocate"; |
22 } // namespace | 22 } // namespace |
23 | 23 |
24 // To avoid oscillations, set this to twice the expected update interval of a | 24 // To avoid oscillations, set this to twice the expected update interval of a |
25 // a GPS-type location provider (in case it misses a beat) plus a little. | 25 // a GPS-type location provider (in case it misses a beat) plus a little. |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 } | 191 } |
192 } | 192 } |
193 return false; | 193 return false; |
194 } | 194 } |
195 | 195 |
196 bool GeolocationArbitratorImpl::HasPermissionBeenGranted() const { | 196 bool GeolocationArbitratorImpl::HasPermissionBeenGranted() const { |
197 return is_permission_granted_; | 197 return is_permission_granted_; |
198 } | 198 } |
199 | 199 |
200 } // namespace content | 200 } // namespace content |
OLD | NEW |