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

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: Created 6 years, 3 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(
25 const blink::WebString& regionId,
26 const blink::WebCircularGeofencingRegion& region,
27 blink::WebGeofencingCallbacks* callbacks) OVERRIDE;
jochen (gone - plz use gerrit) 2014/09/11 12:47:27 no OVERRIDE on blink API implementation
Marijn Kruisselbrink 2014/09/11 17:57:52 Done. But why is this? Is this to make it easier t
jochen (gone - plz use gerrit) 2014/09/12 13:52:54 yes, to make it easier. Apparently not everybody
28 virtual void unregisterRegion(
29 const blink::WebString& regionId,
30 blink::WebGeofencingCallbacks* callbacks) OVERRIDE;
31 virtual void getRegisteredRegions(
32 blink::WebGeofencingRegionsCallbacks* callbacks) OVERRIDE;
33
34 GeofencingDispatcher* GetDispatcher();
35
36 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
37
38 DISALLOW_COPY_AND_ASSIGN(WebGeofencingProviderImpl);
39 };
40
41 } // namespace content
42
43 #endif // CONTENT_CHILD_GEOFENCING_WEB_GEOFENCING_PROVIDER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698