diff options
Diffstat (limited to 'chromium/content/common/geolocation_messages.h')
-rw-r--r-- | chromium/content/common/geolocation_messages.h | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/chromium/content/common/geolocation_messages.h b/chromium/content/common/geolocation_messages.h index 2c70a743b9e..55b4bd77368 100644 --- a/chromium/content/common/geolocation_messages.h +++ b/chromium/content/common/geolocation_messages.h @@ -11,7 +11,8 @@ #define IPC_MESSAGE_START GeolocationMsgStart -IPC_ENUM_TRAITS(content::Geoposition::ErrorCode) +IPC_ENUM_TRAITS_MAX_VALUE(content::Geoposition::ErrorCode, + content::Geoposition::ERROR_CODE_LAST) IPC_STRUCT_TRAITS_BEGIN(content::Geoposition) IPC_STRUCT_TRAITS_MEMBER(latitude) @@ -41,32 +42,28 @@ IPC_MESSAGE_ROUTED1(GeolocationMsg_PositionUpdated, // Messages sent from the renderer to the browser. -// The |render_view_id| and |bridge_id| representing |host| is requesting -// permission to access geolocation position. -// This will be replied by GeolocationMsg_PermissionSet. -IPC_MESSAGE_CONTROL3(GeolocationHostMsg_RequestPermission, - int /* render_view_id */, +// The |bridge_id| representing |host| is requesting permission to access +// geolocation position. This will be replied by GeolocationMsg_PermissionSet. +IPC_MESSAGE_ROUTED3(GeolocationHostMsg_RequestPermission, int /* bridge_id */, - GURL /* GURL of the frame requesting geolocation */) + GURL /* GURL of the frame requesting geolocation */, + bool /* user_gesture */) -// The |render_view_id| and |bridge_id| representing |GURL| is cancelling its -// previous permission request to access geolocation position. -IPC_MESSAGE_CONTROL3(GeolocationHostMsg_CancelPermissionRequest, - int /* render_view_id */, - int /* bridge_id */, - GURL /* GURL of the frame */) +// The |bridge_id| representing |GURL| is cancelling its previous permission +// request to access geolocation position. +IPC_MESSAGE_ROUTED2(GeolocationHostMsg_CancelPermissionRequest, + int /* bridge_id */, + GURL /* GURL of the frame */) -// The |render_view_id| requests Geolocation service to start updating. +// The render view requests the Geolocation service to start updating. // This is an asynchronous call, and the browser process may eventually reply // with the updated geoposition, or an error (access denied, location // unavailable, etc.) -IPC_MESSAGE_CONTROL3(GeolocationHostMsg_StartUpdating, - int /* render_view_id */, +IPC_MESSAGE_ROUTED2(GeolocationHostMsg_StartUpdating, GURL /* GURL of the frame requesting geolocation */, bool /* enable_high_accuracy */) -// The |render_view_id| requests Geolocation service to stop updating. +// The render view requests Geolocation service to stop updating. // Note that the geolocation service may continue to fetch geolocation data // for other origins. -IPC_MESSAGE_CONTROL1(GeolocationHostMsg_StopUpdating, - int /* render_view_id */) +IPC_MESSAGE_ROUTED0(GeolocationHostMsg_StopUpdating) |