| 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 24 matching lines...) Expand all Loading... |
| 35 bool /* is_allowed */) | 35 bool /* is_allowed */) |
| 36 | 36 |
| 37 // Sent after GeolocationHostMsg_StartUpdating iff the user has granted | 37 // Sent after GeolocationHostMsg_StartUpdating iff the user has granted |
| 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 |bridge_id| representing |host| is requesting permission to access |
| 46 // permission to access geolocation position. | 46 // geolocation position. This will be replied by GeolocationMsg_PermissionSet. |
| 47 // This will be replied by GeolocationMsg_PermissionSet. | 47 IPC_MESSAGE_ROUTED3(GeolocationHostMsg_RequestPermission, |
| 48 IPC_MESSAGE_CONTROL4(GeolocationHostMsg_RequestPermission, | |
| 49 int /* render_view_id */, | |
| 50 int /* bridge_id */, | 48 int /* bridge_id */, |
| 51 GURL /* GURL of the frame requesting geolocation */, | 49 GURL /* GURL of the frame requesting geolocation */, |
| 52 bool /* user_gesture */) | 50 bool /* user_gesture */) |
| 53 | 51 |
| 54 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its | 52 // The |bridge_id| representing |GURL| is cancelling its previous permission |
| 55 // previous permission request to access geolocation position. | 53 // request to access geolocation position. |
| 56 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_CancelPermissionRequest, | 54 IPC_MESSAGE_ROUTED2(GeolocationHostMsg_CancelPermissionRequest, |
| 57 int /* render_view_id */, | 55 int /* bridge_id */, |
| 58 int /* bridge_id */, | 56 GURL /* GURL of the frame */) |
| 59 GURL /* GURL of the frame */) | |
| 60 | 57 |
| 61 // The |render_view_id| requests Geolocation service to start updating. | 58 // The render view requests the Geolocation service to start updating. |
| 62 // This is an asynchronous call, and the browser process may eventually reply | 59 // This is an asynchronous call, and the browser process may eventually reply |
| 63 // with the updated geoposition, or an error (access denied, location | 60 // with the updated geoposition, or an error (access denied, location |
| 64 // unavailable, etc.) | 61 // unavailable, etc.) |
| 65 IPC_MESSAGE_CONTROL3(GeolocationHostMsg_StartUpdating, | 62 IPC_MESSAGE_ROUTED2(GeolocationHostMsg_StartUpdating, |
| 66 int /* render_view_id */, | |
| 67 GURL /* GURL of the frame requesting geolocation */, | 63 GURL /* GURL of the frame requesting geolocation */, |
| 68 bool /* enable_high_accuracy */) | 64 bool /* enable_high_accuracy */) |
| 69 | 65 |
| 70 // The |render_view_id| requests Geolocation service to stop updating. | 66 // The render view requests Geolocation service to stop updating. |
| 71 // Note that the geolocation service may continue to fetch geolocation data | 67 // Note that the geolocation service may continue to fetch geolocation data |
| 72 // for other origins. | 68 // for other origins. |
| 73 IPC_MESSAGE_CONTROL1(GeolocationHostMsg_StopUpdating, | 69 IPC_MESSAGE_ROUTED0(GeolocationHostMsg_StopUpdating) |
| 74 int /* render_view_id */) | |
| OLD | NEW |