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