| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // A location provider provides position information from a particular source | 5 // A location provider provides position information from a particular source |
| 6 // (GPS, network etc). The GearsGeolocation object uses a set of location | 6 // (GPS, network etc). The GearsGeolocation object uses a set of location |
| 7 // providers to obtain a position fix. | 7 // providers to obtain a position fix. |
| 8 // | 8 // |
| 9 // This file declares a base class to be used by all location providers. | 9 // This file declares a base class to be used by all location providers. |
| 10 // Primarily, this class declares interface methods to be implemented by | 10 // Primarily, this class declares interface methods to be implemented by |
| 11 // derived classes. | 11 // derived classes. |
| 12 | 12 |
| 13 #ifndef CHROME_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 13 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
| 14 #define CHROME_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 14 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
| 15 #pragma once | 15 #pragma once |
| 16 | 16 |
| 17 #include <map> | 17 #include <map> |
| 18 |
| 18 #include "base/string16.h" | 19 #include "base/string16.h" |
| 19 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
| 20 | 21 |
| 21 class AccessTokenStore; | 22 class AccessTokenStore; |
| 22 struct Geoposition; | 23 struct Geoposition; |
| 23 class GURL; | 24 class GURL; |
| 24 class URLRequestContextGetter; | 25 class URLRequestContextGetter; |
| 25 | 26 |
| 26 // The base class used by all location providers. | 27 // The base class used by all location providers. |
| 27 class LocationProviderBase : public base::NonThreadSafe { | 28 class LocationProviderBase : public base::NonThreadSafe { |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 | 88 |
| 88 // Factory functions for the various types of location provider to abstract | 89 // Factory functions for the various types of location provider to abstract |
| 89 // over the platform-dependent implementations. | 90 // over the platform-dependent implementations. |
| 90 LocationProviderBase* NewNetworkLocationProvider( | 91 LocationProviderBase* NewNetworkLocationProvider( |
| 91 AccessTokenStore* access_token_store, | 92 AccessTokenStore* access_token_store, |
| 92 URLRequestContextGetter* context, | 93 URLRequestContextGetter* context, |
| 93 const GURL& url, | 94 const GURL& url, |
| 94 const string16& access_token); | 95 const string16& access_token); |
| 95 LocationProviderBase* NewSystemLocationProvider(); | 96 LocationProviderBase* NewSystemLocationProvider(); |
| 96 | 97 |
| 97 #endif // CHROME_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 98 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
| OLD | NEW |