| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCATION_ARBITRATOR_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_IMPL_H_ |
| 6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_IMPL_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 explicit LocationArbitratorImpl(const LocationUpdateCallback& callback); | 39 explicit LocationArbitratorImpl(const LocationUpdateCallback& callback); |
| 40 virtual ~LocationArbitratorImpl(); | 40 virtual ~LocationArbitratorImpl(); |
| 41 | 41 |
| 42 static GURL DefaultNetworkProviderURL(); | 42 static GURL DefaultNetworkProviderURL(); |
| 43 | 43 |
| 44 // LocationArbitrator | 44 // LocationArbitrator |
| 45 virtual void StartProviders(bool use_high_accuracy) OVERRIDE; | 45 virtual void StartProviders(bool use_high_accuracy) OVERRIDE; |
| 46 virtual void StopProviders() OVERRIDE; | 46 virtual void StopProviders() OVERRIDE; |
| 47 virtual void OnPermissionGranted() OVERRIDE; | 47 virtual void OnPermissionGranted() OVERRIDE; |
| 48 virtual bool HasPermissionBeenGranted() const OVERRIDE; | 48 virtual bool HasPermissionBeenGranted() const OVERRIDE; |
| 49 virtual void PauseProviders() OVERRIDE; |
| 50 virtual void ResumeProviders() OVERRIDE; |
| 49 | 51 |
| 50 protected: | 52 protected: |
| 51 AccessTokenStore* GetAccessTokenStore(); | 53 AccessTokenStore* GetAccessTokenStore(); |
| 52 | 54 |
| 53 // These functions are useful for injection of dependencies in derived | 55 // These functions are useful for injection of dependencies in derived |
| 54 // testing classes. | 56 // testing classes. |
| 55 virtual AccessTokenStore* NewAccessTokenStore(); | 57 virtual AccessTokenStore* NewAccessTokenStore(); |
| 56 virtual LocationProvider* NewNetworkLocationProvider( | 58 virtual LocationProvider* NewNetworkLocationProvider( |
| 57 AccessTokenStore* access_token_store, | 59 AccessTokenStore* access_token_store, |
| 58 net::URLRequestContextGetter* context, | 60 net::URLRequestContextGetter* context, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 DISALLOW_COPY_AND_ASSIGN(LocationArbitratorImpl); | 100 DISALLOW_COPY_AND_ASSIGN(LocationArbitratorImpl); |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 // Factory functions for the various types of location provider to abstract | 103 // Factory functions for the various types of location provider to abstract |
| 102 // over the platform-dependent implementations. | 104 // over the platform-dependent implementations. |
| 103 LocationProvider* NewSystemLocationProvider(); | 105 LocationProvider* NewSystemLocationProvider(); |
| 104 | 106 |
| 105 } // namespace content | 107 } // namespace content |
| 106 | 108 |
| 107 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_IMPL_H_ | 109 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_IMPL_H_ |
| OLD | NEW |