| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROMEOS_GEOLOCATION_GEOPOSITION_H_ | 5 #ifndef CHROMEOS_GEOLOCATION_GEOPOSITION_H_ |
| 6 #define CHROMEOS_GEOLOCATION_GEOPOSITION_H_ | 6 #define CHROMEOS_GEOLOCATION_GEOPOSITION_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "chromeos/chromeos_export.h" | 11 #include "chromeos/chromeos_export.h" |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 | 14 |
| 15 // This structure represents Google Maps Geolocation response. | 15 // This structure represents Google Maps Geolocation response. |
| 16 // Based on device/geolocation/geoposition.h . | 16 // Based on content/public/common/geoposition.h . |
| 17 struct CHROMEOS_EXPORT Geoposition { | 17 struct CHROMEOS_EXPORT Geoposition { |
| 18 // Geolocation API client status. | 18 // Geolocation API client status. |
| 19 // (Server status is reported in "error_code" field.) | 19 // (Server status is reported in "error_code" field.) |
| 20 enum Status { | 20 enum Status { |
| 21 STATUS_NONE, | 21 STATUS_NONE, |
| 22 STATUS_OK, // Response successful. | 22 STATUS_OK, // Response successful. |
| 23 STATUS_SERVER_ERROR, // Received error object. | 23 STATUS_SERVER_ERROR, // Received error object. |
| 24 STATUS_NETWORK_ERROR, // Received bad or no response. | 24 STATUS_NETWORK_ERROR, // Received bad or no response. |
| 25 STATUS_TIMEOUT, // Request stopped because of timeout. | 25 STATUS_TIMEOUT, // Request stopped because of timeout. |
| 26 STATUS_LAST = STATUS_TIMEOUT | 26 STATUS_LAST = STATUS_TIMEOUT |
| (...skipping 30 matching lines...) Expand all Loading... |
| 57 // source device's clock). | 57 // source device's clock). |
| 58 base::Time timestamp; | 58 base::Time timestamp; |
| 59 | 59 |
| 60 // See enum above. | 60 // See enum above. |
| 61 Status status; | 61 Status status; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace chromeos | 64 } // namespace chromeos |
| 65 | 65 |
| 66 #endif // CHROMEOS_GEOLOCATION_GEOPOSITION_H_ | 66 #endif // CHROMEOS_GEOLOCATION_GEOPOSITION_H_ |
| OLD | NEW |