Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: chromeos/geolocation/geoposition.h

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/geolocation/DEPS ('k') | components/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chromeos/geolocation/DEPS ('k') | components/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698