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

Side by Side Diff: Source/modules/geolocation/GeofencingController.h

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing2
Patch Set: Created 6 years, 5 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
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 GeofencingController_h
6 #define GeofencingController_h
7
8 #include "core/frame/LocalFrame.h"
9 #include "platform/Supplementable.h"
10 #include "wtf/Forward.h"
11 #include "wtf/Noncopyable.h"
12 #include "wtf/PassOwnPtr.h"
13
14 namespace blink {
15 class WebGeofencingClient;
16 } // namespace blink
17
18 namespace WebCore {
19
20 class GeofencingController FINAL : public NoBaseWillBeGarbageCollected<Geofencin gController>, public WillBeHeapSupplement<LocalFrame> {
21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(GeofencingController);
22 WTF_MAKE_NONCOPYABLE(GeofencingController);
23
24 public:
25 static PassOwnPtrWillBeRawPtr<GeofencingController> create(blink::WebGeofenc ingClient*);
26 static const char* supplementName();
27 static GeofencingController* from(LocalFrame* frame) { return static_cast<Ge ofencingController*>(WillBeHeapSupplement<LocalFrame>::from(frame, supplementNam e())); }
28 static blink::WebGeofencingClient* clientFrom(LocalFrame*);
29
30 blink::WebGeofencingClient* client() const { return m_client; }
31
32 virtual void trace(Visitor* visitor) OVERRIDE { WillBeHeapSupplement<LocalFr ame>::trace(visitor); }
33
34 private:
35 explicit GeofencingController(blink::WebGeofencingClient*);
36
37 blink::WebGeofencingClient* m_client;
38 };
39
40 void provideGeofencingControllerTo(LocalFrame&, blink::WebGeofencingClient*);
41
42 } // namespace WebCore
43
44 #endif // GeofencingController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698