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 #ifndef CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ | 5 #ifndef CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
6 #define CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ | 6 #define CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "third_party/WebKit/public/platform/WebGeofencingProvider.h" | 10 #include "third_party/WebKit/public/platform/WebGeofencingProvider.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 blink::WebServiceWorkerRegistration* service_worker_registration, | 27 blink::WebServiceWorkerRegistration* service_worker_registration, |
28 blink::WebGeofencingCallbacks* callbacks); | 28 blink::WebGeofencingCallbacks* callbacks); |
29 virtual void unregisterRegion( | 29 virtual void unregisterRegion( |
30 const blink::WebString& regionId, | 30 const blink::WebString& regionId, |
31 blink::WebServiceWorkerRegistration* service_worker_registration, | 31 blink::WebServiceWorkerRegistration* service_worker_registration, |
32 blink::WebGeofencingCallbacks* callbacks); | 32 blink::WebGeofencingCallbacks* callbacks); |
33 virtual void getRegisteredRegions( | 33 virtual void getRegisteredRegions( |
34 blink::WebServiceWorkerRegistration* service_worker_registration, | 34 blink::WebServiceWorkerRegistration* service_worker_registration, |
35 blink::WebGeofencingRegionsCallbacks* callbacks); | 35 blink::WebGeofencingRegionsCallbacks* callbacks); |
36 | 36 |
| 37 virtual void setMockProvider( |
| 38 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 39 bool service_available); |
| 40 virtual void clearMockProvider(blink::WebServiceWorkerRegistration*); |
| 41 virtual void setMockPosition( |
| 42 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 43 double latitude, |
| 44 double longitude); |
| 45 |
37 GeofencingDispatcher* GetDispatcher(); | 46 GeofencingDispatcher* GetDispatcher(); |
38 | 47 |
39 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 48 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
40 | 49 |
41 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl); | 50 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl); |
42 }; | 51 }; |
43 | 52 |
44 } // namespace content | 53 } // namespace content |
45 | 54 |
46 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ | 55 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
OLD | NEW |