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" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 #if defined(OS_ANDROID) | 153 #if defined(OS_ANDROID) |
154 // Android uses its own SystemLocationProvider. | 154 // Android uses its own SystemLocationProvider. |
155 return NULL; | 155 return NULL; |
156 #else | 156 #else |
157 return new NetworkLocationProvider(access_token_store, context, url, | 157 return new NetworkLocationProvider(access_token_store, context, url, |
158 access_token); | 158 access_token); |
159 #endif | 159 #endif |
160 } | 160 } |
161 | 161 |
162 LocationProvider* LocationArbitratorImpl::NewSystemLocationProvider() { | 162 LocationProvider* LocationArbitratorImpl::NewSystemLocationProvider() { |
163 #if defined(OS_WIN) || defined(OS_MACOSX) | 163 #if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) |
164 return NULL; | 164 return NULL; |
165 #else | 165 #else |
166 return content::NewSystemLocationProvider(); | 166 return content::NewSystemLocationProvider(); |
167 #endif | 167 #endif |
168 } | 168 } |
169 | 169 |
170 base::Time LocationArbitratorImpl::GetTimeNow() const { | 170 base::Time LocationArbitratorImpl::GetTimeNow() const { |
171 return base::Time::Now(); | 171 return base::Time::Now(); |
172 } | 172 } |
173 | 173 |
(...skipping 21 matching lines...) Expand all Loading... |
195 } | 195 } |
196 } | 196 } |
197 return false; | 197 return false; |
198 } | 198 } |
199 | 199 |
200 bool LocationArbitratorImpl::HasPermissionBeenGranted() const { | 200 bool LocationArbitratorImpl::HasPermissionBeenGranted() const { |
201 return is_permission_granted_; | 201 return is_permission_granted_; |
202 } | 202 } |
203 | 203 |
204 } // namespace content | 204 } // namespace content |
OLD | NEW |