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_H_ | 5 #ifndef DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
6 #define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_ | 6 #define DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/callback_list.h" | 10 #include "base/callback_list.h" |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // updates from the actual providers and sends an update with the overridden | 56 // updates from the actual providers and sends an update with the overridden |
57 // position to all registered clients. | 57 // position to all registered clients. |
58 // | 58 // |
59 // Do not use this function in unit tests. The function instantiates the | 59 // Do not use this function in unit tests. The function instantiates the |
60 // singleton geolocation stack in the background and manipulates it to report | 60 // singleton geolocation stack in the background and manipulates it to report |
61 // a fake location. Neither step can be undone, breaking unit test isolation | 61 // a fake location. Neither step can be undone, breaking unit test isolation |
62 // (crbug.com/125931). | 62 // (crbug.com/125931). |
63 virtual void OverrideLocationForTesting(const Geoposition& position) = 0; | 63 virtual void OverrideLocationForTesting(const Geoposition& position) = 0; |
64 | 64 |
65 protected: | 65 protected: |
66 virtual~GeolocationProvider() {} | 66 virtual ~GeolocationProvider() {} |
67 }; | 67 }; |
68 | 68 |
69 } // namespace device | 69 } // namespace device |
70 | 70 |
71 #endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_ | 71 #endif // DEVICE_GEOLOCATION_GEOLOCATION_PROVIDER_H_ |
OLD | NEW |