| 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" |
| 11 | 11 |
| 12 namespace content { | 12 namespace content { |
| 13 class GeofencingDispatcher; | 13 class GeofencingDispatcher; |
| 14 class ThreadSafeSender; | 14 class ThreadSafeSender; |
| 15 | 15 |
| 16 class WebGeofencingProviderImpl | 16 class WebGeofencingProviderImpl |
| 17 : NON_EXPORTED_BASE(public blink::WebGeofencingProvider) { | 17 : NON_EXPORTED_BASE(public blink::WebGeofencingProvider) { |
| 18 public: | 18 public: |
| 19 explicit WebGeofencingProviderImpl(ThreadSafeSender* thread_safe_sender); | 19 explicit WebGeofencingProviderImpl(ThreadSafeSender* thread_safe_sender); |
| 20 virtual ~WebGeofencingProviderImpl(); | 20 virtual ~WebGeofencingProviderImpl(); |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 // WebGeofencingProvider implementation. | 23 // WebGeofencingProvider implementation. |
| 24 virtual void registerRegion(const blink::WebString& regionId, | 24 virtual void registerRegion( |
| 25 const blink::WebCircularGeofencingRegion& region, | 25 const blink::WebString& regionId, |
| 26 blink::WebGeofencingCallbacks* callbacks); | 26 const blink::WebCircularGeofencingRegion& region, |
| 27 virtual void unregisterRegion(const blink::WebString& regionId, | 27 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 28 blink::WebGeofencingCallbacks* callbacks); | 28 blink::WebGeofencingCallbacks* callbacks); |
| 29 virtual void unregisterRegion( |
| 30 const blink::WebString& regionId, |
| 31 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 32 blink::WebGeofencingCallbacks* callbacks); |
| 29 virtual void getRegisteredRegions( | 33 virtual void getRegisteredRegions( |
| 34 blink::WebServiceWorkerRegistration* service_worker_registration, |
| 30 blink::WebGeofencingRegionsCallbacks* callbacks); | 35 blink::WebGeofencingRegionsCallbacks* callbacks); |
| 31 | 36 |
| 32 GeofencingDispatcher* GetDispatcher(); | 37 GeofencingDispatcher* GetDispatcher(); |
| 33 | 38 |
| 34 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 39 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 35 | 40 |
| 36 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl); | 41 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl); |
| 37 }; | 42 }; |
| 38 | 43 |
| 39 } // namespace content | 44 } // namespace content |
| 40 | 45 |
| 41 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ | 46 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
| OLD | NEW |