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 #include "content/browser/geolocation/libgps_wrapper_linux.h" | 5 #include "content/browser/geolocation/libgps_wrapper_linux.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <errno.h> | 8 #include <errno.h> |
9 | 9 |
10 #include "chrome/common/geoposition.h" | |
11 #include "base/logging.h" | 10 #include "base/logging.h" |
12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 12 #include "content/common/geoposition.h" |
13 | 13 |
14 namespace { | 14 namespace { |
15 // Pass to TryToOpen() to indicate which functions should be wired up. | 15 // Pass to TryToOpen() to indicate which functions should be wired up. |
16 // This could be turned into a bit mask if required, but for now the | 16 // This could be turned into a bit mask if required, but for now the |
17 // two options are mutually exclusive. | 17 // two options are mutually exclusive. |
18 enum InitMode { | 18 enum InitMode { |
19 INITMODE_QUERY, | 19 INITMODE_QUERY, |
20 INITMODE_STREAM, | 20 INITMODE_STREAM, |
21 }; | 21 }; |
22 | 22 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 } | 211 } |
212 | 212 |
213 const gps_data_t& LibGpsLibraryWrapper::data() const { | 213 const gps_data_t& LibGpsLibraryWrapper::data() const { |
214 DCHECK(is_open()); | 214 DCHECK(is_open()); |
215 return *gps_data_; | 215 return *gps_data_; |
216 } | 216 } |
217 | 217 |
218 bool LibGpsLibraryWrapper::is_open() const { | 218 bool LibGpsLibraryWrapper::is_open() const { |
219 return gps_data_ != NULL; | 219 return gps_data_ != NULL; |
220 } | 220 } |
OLD | NEW |