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_FACTORY_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 friend class base::RefCounted<GeolocationArbitratorDependencyFactory>; | 43 friend class base::RefCounted<GeolocationArbitratorDependencyFactory>; |
44 virtual ~GeolocationArbitratorDependencyFactory(); | 44 virtual ~GeolocationArbitratorDependencyFactory(); |
45 }; | 45 }; |
46 | 46 |
47 // The default dependency factory, exposed so that it is possible | 47 // The default dependency factory, exposed so that it is possible |
48 // to override only certain parts (e.g. the location providers). | 48 // to override only certain parts (e.g. the location providers). |
49 class CONTENT_EXPORT DefaultGeolocationArbitratorDependencyFactory | 49 class CONTENT_EXPORT DefaultGeolocationArbitratorDependencyFactory |
50 : public GeolocationArbitratorDependencyFactory { | 50 : public GeolocationArbitratorDependencyFactory { |
51 public: | 51 public: |
52 // GeolocationArbitratorDependencyFactory | 52 // GeolocationArbitratorDependencyFactory |
53 virtual GetTimeNow GetTimeFunction(); | 53 virtual GetTimeNow GetTimeFunction() OVERRIDE; |
54 virtual AccessTokenStore* NewAccessTokenStore(); | 54 virtual AccessTokenStore* NewAccessTokenStore() OVERRIDE; |
55 virtual LocationProviderBase* NewNetworkLocationProvider( | 55 virtual LocationProviderBase* NewNetworkLocationProvider( |
56 AccessTokenStore* access_token_store, | 56 AccessTokenStore* access_token_store, |
57 net::URLRequestContextGetter* context, | 57 net::URLRequestContextGetter* context, |
58 const GURL& url, | 58 const GURL& url, |
59 const string16& access_token); | 59 const string16& access_token) OVERRIDE; |
60 virtual LocationProviderBase* NewSystemLocationProvider(); | 60 virtual LocationProviderBase* NewSystemLocationProvider() OVERRIDE; |
61 }; | 61 }; |
62 | 62 |
63 #endif // CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORY_H_ | 63 #endif // CONTENT_BROWSER_GEOLOCATION_ARBITRATOR_DEPENDENCY_FACTORY_H_ |
OLD | NEW |