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