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 // This file declares GPS providers that run on linux. Currently, just uses | 5 // This file declares GPS providers that run on linux. Currently, just uses |
6 // the libgps (gpsd) API. Public for testing only - for normal usage this | 6 // the libgps (gpsd) API. Public for testing only - for normal usage this |
7 // header should not be required, as location_provider.h declares the needed | 7 // header should not be required, as location_provider.h declares the needed |
8 // factory function. | 8 // factory function. |
9 | 9 |
10 #ifndef CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ | 10 #ifndef CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ |
11 #define CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ | 11 #define CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ |
12 #pragma once | |
13 | 12 |
14 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
17 #include "content/browser/geolocation/location_provider.h" | 16 #include "content/browser/geolocation/location_provider.h" |
18 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
19 #include "content/public/common/geoposition.h" | 18 #include "content/public/common/geoposition.h" |
20 | 19 |
21 class LibGps; | 20 class LibGps; |
22 | 21 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 61 |
63 const LibGpsFactory libgps_factory_; | 62 const LibGpsFactory libgps_factory_; |
64 scoped_ptr<LibGps> gps_; | 63 scoped_ptr<LibGps> gps_; |
65 content::Geoposition position_; | 64 content::Geoposition position_; |
66 | 65 |
67 // Holder for the tasks which run on the thread; takes care of cleanup. | 66 // Holder for the tasks which run on the thread; takes care of cleanup. |
68 base::WeakPtrFactory<GpsLocationProviderLinux> weak_factory_; | 67 base::WeakPtrFactory<GpsLocationProviderLinux> weak_factory_; |
69 }; | 68 }; |
70 | 69 |
71 #endif // CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ | 70 #endif // CONTENT_BROWSER_GEOLOCATION_GPS_LOCATION_PROVIDER_LINUX_H_ |
OLD | NEW |