Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: content/child/geofencing/web_geofencing_provider_impl.h

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase and add region_id sanity check Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698