| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ | 6 #define CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 base::CallbackList<void(const Geoposition&)> high_accuracy_callbacks_; | 85 base::CallbackList<void(const Geoposition&)> high_accuracy_callbacks_; |
| 86 base::CallbackList<void(const Geoposition&)> low_accuracy_callbacks_; | 86 base::CallbackList<void(const Geoposition&)> low_accuracy_callbacks_; |
| 87 | 87 |
| 88 bool user_did_opt_into_location_services_; | 88 bool user_did_opt_into_location_services_; |
| 89 Geoposition position_; | 89 Geoposition position_; |
| 90 | 90 |
| 91 // True only in testing, where we want to use a custom position. | 91 // True only in testing, where we want to use a custom position. |
| 92 bool ignore_location_updates_; | 92 bool ignore_location_updates_; |
| 93 | 93 |
| 94 // The system provided Delegate for the |arbitrator_|. |
| 95 std::unique_ptr<GeolocationProvider::Delegate> delegate_; |
| 96 |
| 94 // Only to be used on the geolocation thread. | 97 // Only to be used on the geolocation thread. |
| 95 std::unique_ptr<LocationArbitrator> arbitrator_; | 98 std::unique_ptr<LocationArbitrator> arbitrator_; |
| 96 | 99 |
| 97 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); | 100 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); |
| 98 }; | 101 }; |
| 99 | 102 |
| 100 } // namespace content | 103 } // namespace content |
| 101 | 104 |
| 102 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ | 105 #endif // CONTENT_BROWSER_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ |
| OLD | NEW |