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

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

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/geofencing_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 // IPC message for geofencing
6
7 #include <stdint.h>
8
9 #include "content/common/geofencing_types.h"
10 #include "ipc/ipc_message_macros.h"
11 #include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
12
13 // Singly-included section for typedefs.
14 #ifndef CONTENT_COMMON_GEOFENCING_MESSAGES_H_
15 #define CONTENT_COMMON_GEOFENCING_MESSAGES_H_
16
17 typedef std::map<std::string, blink::WebCircularGeofencingRegion>
18 GeofencingRegistrations;
19
20 #endif // CONTENT_COMMON_GEOFENCING_MESSAGES_H_
21
22 // Multiply-included message file, hence no include guard.
23 #define IPC_MESSAGE_START GeofencingMsgStart
24
25 IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingStatus,
26 content::GEOFENCING_STATUS_LAST)
27
28 IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingMockState,
29 content::GeofencingMockState::LAST)
30
31 IPC_STRUCT_TRAITS_BEGIN(blink::WebCircularGeofencingRegion)
32 IPC_STRUCT_TRAITS_MEMBER(latitude)
33 IPC_STRUCT_TRAITS_MEMBER(longitude)
34 IPC_STRUCT_TRAITS_MEMBER(radius)
35 IPC_STRUCT_TRAITS_END()
36
37 // Messages sent from the child process to the browser.
38 IPC_MESSAGE_CONTROL5(GeofencingHostMsg_RegisterRegion,
39 int /* thread_id */,
40 int /* request_id */,
41 std::string /* region_id */,
42 blink::WebCircularGeofencingRegion /* region */,
43 int64_t /* serviceworker_registration_id */)
44
45 IPC_MESSAGE_CONTROL4(GeofencingHostMsg_UnregisterRegion,
46 int /* thread_id */,
47 int /* request_id */,
48 std::string /* region_id */,
49 int64_t /* serviceworker_registration_id */)
50
51 IPC_MESSAGE_CONTROL3(GeofencingHostMsg_GetRegisteredRegions,
52 int /* thread_id */,
53 int /* request_id */,
54 int64_t /* serviceworker_registration_id */)
55
56 IPC_MESSAGE_CONTROL1(GeofencingHostMsg_SetMockProvider,
57 content::GeofencingMockState /* mock_state */)
58
59 IPC_MESSAGE_CONTROL2(GeofencingHostMsg_SetMockPosition,
60 double /* latitude */,
61 double /* longitude */)
62
63 // Messages sent from the browser to the child process.
64
65 // Reply in response to GeofencingHostMsg_RegisterRegion
66 IPC_MESSAGE_CONTROL3(GeofencingMsg_RegisterRegionComplete,
67 int /* thread_id */,
68 int /* request_id */,
69 content::GeofencingStatus /* status */)
70
71 // Reply in response to GeofencingHostMsg_UnregisterRegion
72 IPC_MESSAGE_CONTROL3(GeofencingMsg_UnregisterRegionComplete,
73 int /* thread_id */,
74 int /* request_id */,
75 content::GeofencingStatus /* status */)
76
77 // Reply in response to GeofencingHostMsg_GetRegisteredRegions
78 IPC_MESSAGE_CONTROL4(GeofencingMsg_GetRegisteredRegionsComplete,
79 int /* thread_id */,
80 int /* request_id */,
81 content::GeofencingStatus /* status */,
82 GeofencingRegistrations /* regions */)
OLDNEW
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/geofencing_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698