| 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 CHROME_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ |
| 6 #define CHROME_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/scoped_vector.h" | 10 #include "base/scoped_vector.h" |
| 11 #include "base/time.h" | 11 #include "base/time.h" |
| 12 #include "chrome/browser/geolocation/access_token_store.h" | |
| 13 #include "chrome/browser/geolocation/location_provider.h" | |
| 14 #include "chrome/browser/geolocation/geolocation_observer.h" | |
| 15 #include "chrome/common/geoposition.h" | 12 #include "chrome/common/geoposition.h" |
| 16 #include "chrome/common/net/url_request_context_getter.h" | 13 #include "chrome/common/net/url_request_context_getter.h" |
| 14 #include "content/browser/geolocation/access_token_store.h" |
| 15 #include "content/browser/geolocation/location_provider.h" |
| 16 #include "content/browser/geolocation/geolocation_observer.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 | 18 |
| 19 class AccessTokenStore; | 19 class AccessTokenStore; |
| 20 class GeolocationArbitratorDependencyFactory; | 20 class GeolocationArbitratorDependencyFactory; |
| 21 class GURL; | 21 class GURL; |
| 22 class LocationProviderBase; | 22 class LocationProviderBase; |
| 23 class URLRequestContextGetter; | 23 class URLRequestContextGetter; |
| 24 struct Geoposition; | 24 struct Geoposition; |
| 25 | 25 |
| 26 // This class is responsible for handling updates from multiple underlying | 26 // This class is responsible for handling updates from multiple underlying |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 // The provider which supplied the current |position_| | 90 // The provider which supplied the current |position_| |
| 91 const LocationProviderBase* position_provider_; | 91 const LocationProviderBase* position_provider_; |
| 92 GURL most_recent_authorized_frame_; | 92 GURL most_recent_authorized_frame_; |
| 93 CancelableRequestConsumer request_consumer_; | 93 CancelableRequestConsumer request_consumer_; |
| 94 // The current best estimate of our position. | 94 // The current best estimate of our position. |
| 95 Geoposition position_; | 95 Geoposition position_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(GeolocationArbitrator); | 97 DISALLOW_COPY_AND_ASSIGN(GeolocationArbitrator); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 #endif // CHROME_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ | 100 #endif // CONTENT_BROWSER_GEOLOCATION_LOCATION_ARBITRATOR_H_ |
| OLD | NEW |