OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
| 6 #define CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 #include "third_party/WebKit/public/platform/WebGeofencingProvider.h" |
| 11 |
| 12 namespace content { |
| 13 class GeofencingDispatcher; |
| 14 class ThreadSafeSender; |
| 15 |
| 16 class WebGeofencingProviderImpl |
| 17 : NON_EXPORTED_BASE(public blink::WebGeofencingProvider) { |
| 18 public: |
| 19 explicit WebGeofencingProviderImpl(ThreadSafeSender* thread_safe_sender); |
| 20 virtual ~WebGeofencingProviderImpl(); |
| 21 |
| 22 private: |
| 23 // WebGeofencingProvider implementation. |
| 24 virtual void registerRegion(const blink::WebString& regionId, |
| 25 const blink::WebCircularGeofencingRegion& region, |
| 26 blink::WebGeofencingCallbacks* callbacks); |
| 27 virtual void unregisterRegion(const blink::WebString& regionId, |
| 28 blink::WebGeofencingCallbacks* callbacks); |
| 29 virtual void getRegisteredRegions( |
| 30 blink::WebGeofencingRegionsCallbacks* callbacks); |
| 31 |
| 32 GeofencingDispatcher* GetDispatcher(); |
| 33 |
| 34 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
| 35 |
| 36 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl); |
| 37 }; |
| 38 |
| 39 } // namespace content |
| 40 |
| 41 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_ |
OLD | NEW |