OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 message for geofencing | 5 // IPC message for geofencing |
6 | 6 |
7 #include "content/common/geofencing_status.h" | 7 #include "content/common/geofencing_status.h" |
8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
9 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" | 9 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingStatus, | 23 IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingStatus, |
24 content::GEOFENCING_STATUS_LAST) | 24 content::GEOFENCING_STATUS_LAST) |
25 | 25 |
26 IPC_STRUCT_TRAITS_BEGIN(blink::WebCircularGeofencingRegion) | 26 IPC_STRUCT_TRAITS_BEGIN(blink::WebCircularGeofencingRegion) |
27 IPC_STRUCT_TRAITS_MEMBER(latitude) | 27 IPC_STRUCT_TRAITS_MEMBER(latitude) |
28 IPC_STRUCT_TRAITS_MEMBER(longitude) | 28 IPC_STRUCT_TRAITS_MEMBER(longitude) |
29 IPC_STRUCT_TRAITS_MEMBER(radius) | 29 IPC_STRUCT_TRAITS_MEMBER(radius) |
30 IPC_STRUCT_TRAITS_END() | 30 IPC_STRUCT_TRAITS_END() |
31 | 31 |
32 // Messages sent from the child process to the browser. | 32 // Messages sent from the child process to the browser. |
33 IPC_MESSAGE_CONTROL4(GeofencingHostMsg_RegisterRegion, | 33 IPC_MESSAGE_CONTROL5(GeofencingHostMsg_RegisterRegion, |
34 int /* thread_id */, | 34 int /* thread_id */, |
35 int /* request_id */, | 35 int /* request_id */, |
36 std::string /* region_id */, | 36 std::string /* region_id */, |
37 blink::WebCircularGeofencingRegion /* region */) | 37 blink::WebCircularGeofencingRegion /* region */, |
| 38 int64 /* serviceworker_registration_id */) |
38 | 39 |
39 IPC_MESSAGE_CONTROL3(GeofencingHostMsg_UnregisterRegion, | 40 IPC_MESSAGE_CONTROL4(GeofencingHostMsg_UnregisterRegion, |
40 int /* thread_id */, | 41 int /* thread_id */, |
41 int /* request_id */, | 42 int /* request_id */, |
42 std::string /* region_id */) | 43 std::string /* region_id */, |
| 44 int64 /* serviceworker_registration_id */) |
43 | 45 |
44 IPC_MESSAGE_CONTROL2(GeofencingHostMsg_GetRegisteredRegions, | 46 IPC_MESSAGE_CONTROL3(GeofencingHostMsg_GetRegisteredRegions, |
45 int /* thread_id */, | 47 int /* thread_id */, |
46 int /* request_id */) | 48 int /* request_id */, |
| 49 int64 /* serviceworker_registration_id */) |
47 | 50 |
48 // Messages sent from the browser to the child process. | 51 // Messages sent from the browser to the child process. |
49 | 52 |
50 // Reply in response to GeofencingHostMsg_RegisterRegion | 53 // Reply in response to GeofencingHostMsg_RegisterRegion |
51 IPC_MESSAGE_CONTROL3(GeofencingMsg_RegisterRegionComplete, | 54 IPC_MESSAGE_CONTROL3(GeofencingMsg_RegisterRegionComplete, |
52 int /* thread_id */, | 55 int /* thread_id */, |
53 int /* request_id */, | 56 int /* request_id */, |
54 content::GeofencingStatus /* status */) | 57 content::GeofencingStatus /* status */) |
55 | 58 |
56 // Reply in response to GeofencingHostMsg_UnregisterRegion | 59 // Reply in response to GeofencingHostMsg_UnregisterRegion |
57 IPC_MESSAGE_CONTROL3(GeofencingMsg_UnregisterRegionComplete, | 60 IPC_MESSAGE_CONTROL3(GeofencingMsg_UnregisterRegionComplete, |
58 int /* thread_id */, | 61 int /* thread_id */, |
59 int /* request_id */, | 62 int /* request_id */, |
60 content::GeofencingStatus /* status */) | 63 content::GeofencingStatus /* status */) |
61 | 64 |
62 // Reply in response to GeofencingHostMsg_GetRegisteredRegions | 65 // Reply in response to GeofencingHostMsg_GetRegisteredRegions |
63 IPC_MESSAGE_CONTROL4(GeofencingMsg_GetRegisteredRegionsComplete, | 66 IPC_MESSAGE_CONTROL4(GeofencingMsg_GetRegisteredRegionsComplete, |
64 int /* thread_id */, | 67 int /* thread_id */, |
65 int /* request_id */, | 68 int /* request_id */, |
66 content::GeofencingStatus /* status */, | 69 content::GeofencingStatus /* status */, |
67 GeofencingRegistrations /* regions */) | 70 GeofencingRegistrations /* regions */) |
OLD | NEW |