| 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 "chrome/browser/geolocation/arbitrator_dependency_factories_for_test.h" | 5 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h
" |
| 6 | 6 |
| 7 GeolocationArbitratorDependencyFactoryWithLocationProvider:: | 7 GeolocationArbitratorDependencyFactoryWithLocationProvider:: |
| 8 GeolocationArbitratorDependencyFactoryWithLocationProvider( | 8 GeolocationArbitratorDependencyFactoryWithLocationProvider( |
| 9 LocationProviderFactoryFunction factory_function) | 9 LocationProviderFactoryFunction factory_function) |
| 10 : factory_function_(factory_function) { | 10 : factory_function_(factory_function) { |
| 11 } | 11 } |
| 12 | 12 |
| 13 GeolocationArbitratorDependencyFactoryWithLocationProvider:: | 13 GeolocationArbitratorDependencyFactoryWithLocationProvider:: |
| 14 ~GeolocationArbitratorDependencyFactoryWithLocationProvider() {} | 14 ~GeolocationArbitratorDependencyFactoryWithLocationProvider() {} |
| 15 | 15 |
| 16 LocationProviderBase* | 16 LocationProviderBase* |
| 17 GeolocationArbitratorDependencyFactoryWithLocationProvider:: | 17 GeolocationArbitratorDependencyFactoryWithLocationProvider:: |
| 18 NewNetworkLocationProvider( | 18 NewNetworkLocationProvider( |
| 19 AccessTokenStore* access_token_store, | 19 AccessTokenStore* access_token_store, |
| 20 URLRequestContextGetter* context, | 20 URLRequestContextGetter* context, |
| 21 const GURL& url, | 21 const GURL& url, |
| 22 const string16& access_token) { | 22 const string16& access_token) { |
| 23 return factory_function_(); | 23 return factory_function_(); |
| 24 } | 24 } |
| 25 | 25 |
| 26 LocationProviderBase* | 26 LocationProviderBase* |
| 27 GeolocationArbitratorDependencyFactoryWithLocationProvider:: | 27 GeolocationArbitratorDependencyFactoryWithLocationProvider:: |
| 28 NewSystemLocationProvider() { | 28 NewSystemLocationProvider() { |
| 29 return NULL; | 29 return NULL; |
| 30 } | 30 } |
| OLD | NEW |