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_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_ |
6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_ | 6 #define CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
10 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 struct Geoposition; | 13 struct Geoposition; |
15 | 14 |
16 typedef base::Callback<void(const Geoposition&)> GeolocationUpdateCallback; | 15 typedef base::Callback<void(const Geoposition&)> GeolocationUpdateCallback; |
17 | 16 |
(...skipping 15 matching lines...) Expand all Loading... |
33 | 32 |
34 // Requests a one-time callback when the next location update becomes available. | 33 // Requests a one-time callback when the next location update becomes available. |
35 // This function may be called on any thread. The callback will be invoked on | 34 // This function may be called on any thread. The callback will be invoked on |
36 // the calling thread. | 35 // the calling thread. |
37 void CONTENT_EXPORT RequestLocationUpdate( | 36 void CONTENT_EXPORT RequestLocationUpdate( |
38 const GeolocationUpdateCallback& callback); | 37 const GeolocationUpdateCallback& callback); |
39 | 38 |
40 } // namespace content | 39 } // namespace content |
41 | 40 |
42 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_ | 41 #endif // CONTENT_PUBLIC_BROWSER_GEOLOCATION_H_ |
OLD | NEW |