| 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 // Defines a wrapper around the C libgps API (gps.h). Similar to the libgpsmm.h | 5 // Defines a wrapper around the C libgps API (gps.h). Similar to the libgpsmm.h |
| 6 // API provided by that package, but adds: | 6 // API provided by that package, but adds: |
| 7 // - shared object dynamic loading | 7 // - shared object dynamic loading |
| 8 // - support for (and abstraction from) different libgps.so versions | 8 // - support for (and abstraction from) different libgps.so versions |
| 9 // - configurable for testing | 9 // - configurable for testing |
| 10 // - more convenient error handling. | 10 // - more convenient error handling. |
| 11 | 11 |
| 12 #ifndef CHROME_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ | 12 #ifndef CONTENT_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ |
| 13 #define CHROME_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ | 13 #define CONTENT_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ |
| 14 #pragma once | 14 #pragma once |
| 15 | 15 |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 #include "base/scoped_ptr.h" | 18 #include "base/scoped_ptr.h" |
| 19 #include "base/time.h" | 19 #include "base/time.h" |
| 20 | 20 |
| 21 struct Geoposition; | 21 struct Geoposition; |
| 22 class LibGpsLibraryWrapper; | 22 class LibGpsLibraryWrapper; |
| 23 | 23 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 gps_poll_fn gps_poll_; | 102 gps_poll_fn gps_poll_; |
| 103 gps_query_fn gps_query_; | 103 gps_query_fn gps_query_; |
| 104 gps_stream_fn gps_stream_; | 104 gps_stream_fn gps_stream_; |
| 105 gps_waiting_fn gps_waiting_; | 105 gps_waiting_fn gps_waiting_; |
| 106 | 106 |
| 107 gps_data_t* gps_data_; | 107 gps_data_t* gps_data_; |
| 108 | 108 |
| 109 DISALLOW_COPY_AND_ASSIGN(LibGpsLibraryWrapper); | 109 DISALLOW_COPY_AND_ASSIGN(LibGpsLibraryWrapper); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ | 112 #endif // CONTENT_BROWSER_GEOLOCATION_LIBGPS_WRAPPER_LINUX_H_ |
| OLD | NEW |