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 // IPC messages for geolocation. | 5 // IPC messages for geolocation. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include "content/public/common/geoposition.h" | 8 #include "content/public/common/geoposition.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 #include "url/gurl.h" | 10 #include "url/gurl.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 // permission and we have a position available or an error occurs (such as | 38 // permission and we have a position available or an error occurs (such as |
39 // permission denied, position unavailable, etc.) | 39 // permission denied, position unavailable, etc.) |
40 IPC_MESSAGE_ROUTED1(GeolocationMsg_PositionUpdated, | 40 IPC_MESSAGE_ROUTED1(GeolocationMsg_PositionUpdated, |
41 content::Geoposition /* geoposition */) | 41 content::Geoposition /* geoposition */) |
42 | 42 |
43 // Messages sent from the renderer to the browser. | 43 // Messages sent from the renderer to the browser. |
44 | 44 |
45 // The |render_view_id| and |bridge_id| representing |host| is requesting | 45 // The |render_view_id| and |bridge_id| representing |host| is requesting |
46 // permission to access geolocation position. | 46 // permission to access geolocation position. |
47 // This will be replied by GeolocationMsg_PermissionSet. | 47 // This will be replied by GeolocationMsg_PermissionSet. |
48 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_RequestPermission, | 48 IPC_MESSAGE_CONTROL4(GeolocationHostMsg_RequestPermission, |
49 int /* render_view_id */, | 49 int /* render_view_id */, |
50 int /* bridge_id */, | 50 int /* bridge_id */, |
51 GURL /* GURL of the frame requesting geolocation */) | 51 GURL /* GURL of the frame requesting geolocation */, |
| 52 bool /* user_gesture */) |
52 | 53 |
53 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its | 54 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its |
54 // previous permission request to access geolocation position. | 55 // previous permission request to access geolocation position. |
55 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_CancelPermissionRequest, | 56 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_CancelPermissionRequest, |
56 int /* render_view_id */, | 57 int /* render_view_id */, |
57 int /* bridge_id */, | 58 int /* bridge_id */, |
58 GURL /* GURL of the frame */) | 59 GURL /* GURL of the frame */) |
59 | 60 |
60 // The |render_view_id| requests Geolocation service to start updating. | 61 // The |render_view_id| requests Geolocation service to start updating. |
61 // This is an asynchronous call, and the browser process may eventually reply | 62 // This is an asynchronous call, and the browser process may eventually reply |
62 // with the updated geoposition, or an error (access denied, location | 63 // with the updated geoposition, or an error (access denied, location |
63 // unavailable, etc.) | 64 // unavailable, etc.) |
64 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_StartUpdating, | 65 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_StartUpdating, |
65 int /* render_view_id */, | 66 int /* render_view_id */, |
66 GURL /* GURL of the frame requesting geolocation */, | 67 GURL /* GURL of the frame requesting geolocation */, |
67 bool /* enable_high_accuracy */) | 68 bool /* enable_high_accuracy */) |
68 | 69 |
69 // The |render_view_id| requests Geolocation service to stop updating. | 70 // The |render_view_id| requests Geolocation service to stop updating. |
70 // Note that the geolocation service may continue to fetch geolocation data | 71 // Note that the geolocation service may continue to fetch geolocation data |
71 // for other origins. | 72 // for other origins. |
72 IPC_MESSAGE_CONTROL1(GeolocationHostMsg_StopUpdating, | 73 IPC_MESSAGE_CONTROL1(GeolocationHostMsg_StopUpdating, |
73 int /* render_view_id */) | 74 int /* render_view_id */) |
OLD | NEW |