Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(587)

Side by Side Diff: content/common/geolocation_messages.h

Issue 185813004: [Geolocation] Attach user gesture indicator to permission request call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch android Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 */)
OLDNEW
« no previous file with comments | « content/browser/geolocation/geolocation_dispatcher_host.cc ('k') | content/public/browser/geolocation_permission_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698