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 // 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). | 6 // (GPS, network etc). |
7 // | 7 // |
8 // This file declares a base class to be used by all location providers. | 8 // This file declares a base class to be used by all location providers. |
9 // Primarily, this class declares interface methods to be implemented by | 9 // Primarily, this class declares interface methods to be implemented by |
10 // derived classes. | 10 // derived classes. |
11 | 11 |
12 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 12 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
13 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 13 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
14 | 14 |
15 #include <map> | 15 #include <map> |
16 | 16 |
17 #include "base/string16.h" | 17 #include "base/strings/string16.h" |
18 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
19 #include "content/common/content_export.h" | 19 #include "content/common/content_export.h" |
20 | 20 |
21 class GURL; | 21 class GURL; |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 class URLRequestContextGetter; | 24 class URLRequestContextGetter; |
25 } | 25 } |
26 | 26 |
27 namespace content { | 27 namespace content { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider( | 96 CONTENT_EXPORT LocationProviderBase* NewNetworkLocationProvider( |
97 AccessTokenStore* access_token_store, | 97 AccessTokenStore* access_token_store, |
98 net::URLRequestContextGetter* context, | 98 net::URLRequestContextGetter* context, |
99 const GURL& url, | 99 const GURL& url, |
100 const string16& access_token); | 100 const string16& access_token); |
101 LocationProviderBase* NewSystemLocationProvider(); | 101 LocationProviderBase* NewSystemLocationProvider(); |
102 | 102 |
103 } // namespace content | 103 } // namespace content |
104 | 104 |
105 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ | 105 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_PROVIDER_H_ |
OLD | NEW |