| 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 DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ | 5 #ifndef DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ |
| 6 #define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ | 6 #define DEVICE_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> |
| 11 | 11 |
| 12 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/threading/thread.h" | 15 #include "base/threading/thread.h" |
| 16 #include "device/geolocation/geolocation_export.h" | 16 #include "device/geolocation/geolocation_export.h" |
| 17 #include "device/geolocation/geolocation_provider.h" | 17 #include "device/geolocation/geolocation_provider.h" |
| 18 #include "device/geolocation/geoposition.h" | 18 #include "device/geolocation/geoposition.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 template<typename Type> struct DefaultSingletonTraits; | 21 template <typename Type> |
| 22 struct DefaultSingletonTraits; |
| 22 class SingleThreadTaskRunner; | 23 class SingleThreadTaskRunner; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace device { | 26 namespace device { |
| 26 class LocationArbitrator; | 27 class LocationArbitrator; |
| 27 | 28 |
| 28 class DEVICE_GEOLOCATION_EXPORT GeolocationProviderImpl | 29 class DEVICE_GEOLOCATION_EXPORT GeolocationProviderImpl |
| 29 : public NON_EXPORTED_BASE(GeolocationProvider), | 30 : public NON_EXPORTED_BASE(GeolocationProvider), |
| 30 public base::Thread { | 31 public base::Thread { |
| 31 public: | 32 public: |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 98 |
| 98 // Used to PostTask()s from the geolocation thread to creation thread. | 99 // Used to PostTask()s from the geolocation thread to creation thread. |
| 99 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; | 100 const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); | 102 DISALLOW_COPY_AND_ASSIGN(GeolocationProviderImpl); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace device | 105 } // namespace device |
| 105 | 106 |
| 106 #endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ | 107 #endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_IMPL_H_ |
| OLD | NEW |