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

Side by Side Diff: third_party/WebKit/Source/modules/geofencing/WorkerNavigatorGeofencing.cpp

Issue 1972733002: Delete geofencing implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark histogram suffix as obsolete Created 4 years, 7 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 #include "modules/geofencing/WorkerNavigatorGeofencing.h"
6
7 #include "core/workers/WorkerNavigator.h"
8 #include "modules/geofencing/Geofencing.h"
9
10 namespace blink {
11
12 WorkerNavigatorGeofencing::WorkerNavigatorGeofencing()
13 {
14 }
15
16 WorkerNavigatorGeofencing::~WorkerNavigatorGeofencing()
17 {
18 }
19
20 const char* WorkerNavigatorGeofencing::supplementName()
21 {
22 return "WorkerNavigatorGeofencing";
23 }
24
25 WorkerNavigatorGeofencing& WorkerNavigatorGeofencing::from(WorkerNavigator& navi gator)
26 {
27 WorkerNavigatorGeofencing* supplement = static_cast<WorkerNavigatorGeofencin g*>(Supplement<WorkerNavigator>::from(navigator, supplementName()));
28 if (!supplement) {
29 supplement = new WorkerNavigatorGeofencing();
30 provideTo(navigator, supplementName(), supplement);
31 }
32 return *supplement;
33 }
34
35 Geofencing* WorkerNavigatorGeofencing::geofencing(WorkerNavigator& navigator)
36 {
37 return WorkerNavigatorGeofencing::from(navigator).geofencing();
38 }
39
40 Geofencing* WorkerNavigatorGeofencing::geofencing()
41 {
42 if (!m_geofencing)
43 m_geofencing = Geofencing::create(nullptr);
44 return m_geofencing.get();
45 }
46
47 DEFINE_TRACE(WorkerNavigatorGeofencing)
48 {
49 visitor->trace(m_geofencing);
50 Supplement<WorkerNavigator>::trace(visitor);
51 }
52
53 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698