Index: content/child/geofencing/geofencing_dispatcher.cc |
diff --git a/content/child/geofencing/geofencing_dispatcher.cc b/content/child/geofencing/geofencing_dispatcher.cc |
index eec721faf979eaa18d6a140a076231195bb7f35d..8d64fa012715230218ec25c0e7446763a5752d5f 100644 |
--- a/content/child/geofencing/geofencing_dispatcher.cc |
+++ b/content/child/geofencing/geofencing_dispatcher.cc |
@@ -121,6 +121,20 @@ void GeofencingDispatcher::GetRegisteredRegions( |
CurrentWorkerId(), request_id, serviceworker_registration_id)); |
} |
+void GeofencingDispatcher::SetMockProvider(bool service_available) { |
+ Send(new GeofencingHostMsg_SetMockProvider( |
+ service_available ? GeofencingMockState::SERVICE_AVAILABLE |
+ : GeofencingMockState::SERVICE_UNAVAILABLE)); |
+} |
+ |
+void GeofencingDispatcher::ClearMockProvider() { |
+ Send(new GeofencingHostMsg_SetMockProvider(GeofencingMockState::NONE)); |
+} |
+ |
+void GeofencingDispatcher::SetMockPosition(double latitude, double longitude) { |
+ Send(new GeofencingHostMsg_SetMockPosition(latitude, longitude)); |
+} |
+ |
GeofencingDispatcher* GeofencingDispatcher::GetOrCreateThreadSpecificInstance( |
ThreadSafeSender* thread_safe_sender) { |
if (g_dispatcher_tls.Pointer()->Get() == kHasBeenDeleted) { |