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 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 | 10 |
11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "chrome/common/geoposition.h" | |
13 #include "content/browser/geolocation/geolocation_observer.h" | 12 #include "content/browser/geolocation/geolocation_observer.h" |
| 13 #include "content/common/geoposition.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 | 15 |
16 class GeolocationArbitrator; | 16 class GeolocationArbitrator; |
17 | 17 |
18 template<typename Type> | 18 template<typename Type> |
19 struct DefaultSingletonTraits; | 19 struct DefaultSingletonTraits; |
20 | 20 |
21 // This is the main API to the geolocaiton subsystem. The application | 21 // This is the main API to the geolocaiton subsystem. The application |
22 // will hold a single instance of this class, and can register multiple | 22 // will hold a single instance of this class, and can register multiple |
23 // observers which will be notified of location updates. Underlying location | 23 // observers which will be notified of location updates. Underlying location |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 GURL most_recent_authorized_frame_; | 91 GURL most_recent_authorized_frame_; |
92 Geoposition position_; | 92 Geoposition position_; |
93 | 93 |
94 // Only to be used on the geolocation thread. | 94 // Only to be used on the geolocation thread. |
95 GeolocationArbitrator* arbitrator_; | 95 GeolocationArbitrator* arbitrator_; |
96 | 96 |
97 DISALLOW_COPY_AND_ASSIGN(GeolocationProvider); | 97 DISALLOW_COPY_AND_ASSIGN(GeolocationProvider); |
98 }; | 98 }; |
99 | 99 |
100 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ | 100 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
OLD | NEW |