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

Unified Diff: content/common/geofencing_messages.h

Issue 701953007: Expose mock geofencing service via testRunner. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mention unifying bug in a comment Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.cc ('k') | content/common/geofencing_status.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/geofencing_messages.h
diff --git a/content/common/geofencing_messages.h b/content/common/geofencing_messages.h
index 152b108e0dcd301c2bd5da62de6636611b9e0055..e79b3aa0fc7b2c90685f2bf14ea1620840f9e238 100644
--- a/content/common/geofencing_messages.h
+++ b/content/common/geofencing_messages.h
@@ -4,7 +4,7 @@
// IPC message for geofencing
-#include "content/common/geofencing_status.h"
+#include "content/common/geofencing_types.h"
#include "ipc/ipc_message_macros.h"
#include "third_party/WebKit/public/platform/WebCircularGeofencingRegion.h"
@@ -23,6 +23,9 @@ typedef std::map<std::string, blink::WebCircularGeofencingRegion>
IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingStatus,
content::GEOFENCING_STATUS_LAST)
+IPC_ENUM_TRAITS_MAX_VALUE(content::GeofencingMockState,
+ content::GeofencingMockState::LAST)
+
IPC_STRUCT_TRAITS_BEGIN(blink::WebCircularGeofencingRegion)
IPC_STRUCT_TRAITS_MEMBER(latitude)
IPC_STRUCT_TRAITS_MEMBER(longitude)
@@ -48,6 +51,13 @@ IPC_MESSAGE_CONTROL3(GeofencingHostMsg_GetRegisteredRegions,
int /* request_id */,
int64 /* serviceworker_registration_id */)
+IPC_MESSAGE_CONTROL1(GeofencingHostMsg_SetMockProvider,
+ content::GeofencingMockState /* mock_state */)
+
+IPC_MESSAGE_CONTROL2(GeofencingHostMsg_SetMockPosition,
+ double /* latitude */,
+ double /* longitude */)
+
// Messages sent from the browser to the child process.
// Reply in response to GeofencingHostMsg_RegisterRegion
« no previous file with comments | « content/child/geofencing/web_geofencing_provider_impl.cc ('k') | content/common/geofencing_status.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698