| 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 #ifndef CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_H_ |
| 6 #define CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/browser/geolocation/arbitrator_dependency_factory.h" | 9 #include "content/browser/geolocation/arbitrator_dependency_factory.h" |
| 10 | 10 |
| 11 class GeolocationArbitratorDependencyFactoryWithLocationProvider | 11 class GeolocationArbitratorDependencyFactoryWithLocationProvider |
| 12 : public DefaultGeolocationArbitratorDependencyFactory { | 12 : public DefaultGeolocationArbitratorDependencyFactory { |
| 13 public: | 13 public: |
| 14 typedef LocationProviderBase* (*LocationProviderFactoryFunction)(void); | 14 typedef LocationProviderBase* (*LocationProviderFactoryFunction)(void); |
| 15 | 15 |
| 16 GeolocationArbitratorDependencyFactoryWithLocationProvider( | 16 GeolocationArbitratorDependencyFactoryWithLocationProvider( |
| 17 LocationProviderFactoryFunction factory_function); | 17 LocationProviderFactoryFunction factory_function); |
| 18 virtual ~GeolocationArbitratorDependencyFactoryWithLocationProvider(); | |
| 19 | 18 |
| 20 virtual LocationProviderBase* NewNetworkLocationProvider( | 19 virtual LocationProviderBase* NewNetworkLocationProvider( |
| 21 content::AccessTokenStore* access_token_store, | 20 content::AccessTokenStore* access_token_store, |
| 22 net::URLRequestContextGetter* context, | 21 net::URLRequestContextGetter* context, |
| 23 const GURL& url, | 22 const GURL& url, |
| 24 const string16& access_token) OVERRIDE; | 23 const string16& access_token) OVERRIDE; |
| 25 | 24 |
| 26 virtual LocationProviderBase* NewSystemLocationProvider() OVERRIDE; | 25 virtual LocationProviderBase* NewSystemLocationProvider() OVERRIDE; |
| 27 | 26 |
| 28 protected: | 27 protected: |
| 28 virtual ~GeolocationArbitratorDependencyFactoryWithLocationProvider(); |
| 29 |
| 29 LocationProviderFactoryFunction factory_function_; | 30 LocationProviderFactoryFunction factory_function_; |
| 30 }; | 31 }; |
| 31 | 32 |
| 32 | 33 |
| 33 #endif // CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_
H_ | 34 #endif // CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORIES_FOR_TEST_
H_ |
| OLD | NEW |