| 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 "chrome/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" | 10 #include "chrome/common/geoposition.h" |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.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. |
| (...skipping 195 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 |