| Index: content/child/geofencing/geofencing_dispatcher.h
|
| diff --git a/content/child/geofencing/geofencing_dispatcher.h b/content/child/geofencing/geofencing_dispatcher.h
|
| index 57a2a437b5da9d3c40340f3ec102de8f6c38d2f8..269dfe7c031f4b28fbfed0f63728ed8032dc0c13 100644
|
| --- a/content/child/geofencing/geofencing_dispatcher.h
|
| +++ b/content/child/geofencing/geofencing_dispatcher.h
|
| @@ -9,7 +9,7 @@
|
| #include "base/memory/ref_counted.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "content/child/worker_task_runner.h"
|
| -#include "content/common/geofencing_status.h"
|
| +#include "content/common/geofencing_types.h"
|
| #include "third_party/WebKit/public/platform/WebGeofencingProvider.h"
|
|
|
| namespace base {
|
| @@ -46,6 +46,14 @@ class GeofencingDispatcher : public WorkerTaskRunner::Observer {
|
| blink::WebServiceWorkerRegistration* service_worker_registration,
|
| blink::WebGeofencingRegionsCallbacks* callbacks);
|
|
|
| + // Enables mock geofencing service. |service_available| indicates if the
|
| + // mock service should mock geofencing being available or not.
|
| + void SetMockProvider(bool service_available);
|
| + // Disables mock geofencing service.
|
| + void ClearMockProvider();
|
| + // Set the mock geofencing position.
|
| + void SetMockPosition(double latitude, double longitude);
|
| +
|
| // |thread_safe_sender| needs to be passed in because if the call leads to
|
| // construction it will be needed.
|
| static GeofencingDispatcher* GetOrCreateThreadSpecificInstance(
|
|
|