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_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ |
6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ | 6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ |
7 | 7 |
8 #include "base/callback_list.h" | 8 #include "base/callback_list.h" |
9 #include "base/memory/scoped_ptr.h" | |
dcheng
2016/04/07 21:18:54
Meh.
| |
9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 struct Geoposition; | 13 struct Geoposition; |
13 | 14 |
14 // This is the main API to the geolocation subsystem. The application will hold | 15 // This is the main API to the geolocation subsystem. The application will hold |
15 // a single instance of this class and can register multiple clients to be | 16 // a single instance of this class and can register multiple clients to be |
16 // notified of location changes: | 17 // notified of location changes: |
17 // * Callbacks are registered by AddLocationUpdateCallback() and will keep | 18 // * Callbacks are registered by AddLocationUpdateCallback() and will keep |
18 // receiving updates until the returned subscription object is destructed. | 19 // receiving updates until the returned subscription object is destructed. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 // (crbug.com/125931). | 56 // (crbug.com/125931). |
56 virtual void OverrideLocationForTesting(const Geoposition& position) = 0; | 57 virtual void OverrideLocationForTesting(const Geoposition& position) = 0; |
57 | 58 |
58 protected: | 59 protected: |
59 virtual~GeolocationProvider() {} | 60 virtual~GeolocationProvider() {} |
60 }; | 61 }; |
61 | 62 |
62 } // namespace content | 63 } // namespace content |
63 | 64 |
64 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ | 65 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_PROVIDER_H_ |
OLD | NEW |