| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/arbitrator_dependency_factory.h" | 5 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
| 6 | 6 |
| 7 #include "base/time.h" | 7 #include "base/time.h" |
| 8 #include "content/browser/geolocation/access_token_store.h" | |
| 9 #include "content/browser/geolocation/location_provider.h" | 8 #include "content/browser/geolocation/location_provider.h" |
| 9 #include "content/public/browser/access_token_store.h" |
| 10 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
| 11 | 11 |
| 12 using content::AccessTokenStore; |
| 13 |
| 12 // GeolocationArbitratorDependencyFactory | 14 // GeolocationArbitratorDependencyFactory |
| 13 GeolocationArbitratorDependencyFactory:: | 15 GeolocationArbitratorDependencyFactory:: |
| 14 ~GeolocationArbitratorDependencyFactory() { | 16 ~GeolocationArbitratorDependencyFactory() { |
| 15 } | 17 } |
| 16 | 18 |
| 17 // DefaultGeolocationArbitratorDependencyFactory | 19 // DefaultGeolocationArbitratorDependencyFactory |
| 18 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow | 20 DefaultGeolocationArbitratorDependencyFactory::GetTimeNow |
| 19 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { | 21 DefaultGeolocationArbitratorDependencyFactory::GetTimeFunction() { |
| 20 return base::Time::Now; | 22 return base::Time::Now; |
| 21 } | 23 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 const GURL& url, | 34 const GURL& url, |
| 33 const string16& access_token) { | 35 const string16& access_token) { |
| 34 return ::NewNetworkLocationProvider(access_token_store, context, | 36 return ::NewNetworkLocationProvider(access_token_store, context, |
| 35 url, access_token); | 37 url, access_token); |
| 36 } | 38 } |
| 37 | 39 |
| 38 LocationProviderBase* | 40 LocationProviderBase* |
| 39 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { | 41 DefaultGeolocationArbitratorDependencyFactory::NewSystemLocationProvider() { |
| 40 return ::NewSystemLocationProvider(); | 42 return ::NewSystemLocationProvider(); |
| 41 } | 43 } |
| OLD | NEW |