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

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

Issue 623813002: Blink side of exposing the service worker registration associated with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: hopefully correctly fix compile 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/geofencing/WorkerNavigatorGeofencing.h" 6 #include "modules/geofencing/WorkerNavigatorGeofencing.h"
7 7
8 #include "core/workers/WorkerNavigator.h" 8 #include "core/workers/WorkerNavigator.h"
9 #include "modules/geofencing/Geofencing.h" 9 #include "modules/geofencing/Geofencing.h"
10 10
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 Geofencing* WorkerNavigatorGeofencing::geofencing(WorkerNavigator& navigator) 36 Geofencing* WorkerNavigatorGeofencing::geofencing(WorkerNavigator& navigator)
37 { 37 {
38 return WorkerNavigatorGeofencing::from(navigator).geofencing(); 38 return WorkerNavigatorGeofencing::from(navigator).geofencing();
39 } 39 }
40 40
41 Geofencing* WorkerNavigatorGeofencing::geofencing() 41 Geofencing* WorkerNavigatorGeofencing::geofencing()
42 { 42 {
43 if (!m_geofencing) 43 if (!m_geofencing)
44 m_geofencing = Geofencing::create(); 44 m_geofencing = Geofencing::create(nullptr);
45 return m_geofencing.get(); 45 return m_geofencing.get();
46 } 46 }
47 47
48 void WorkerNavigatorGeofencing::trace(Visitor* visitor) 48 void WorkerNavigatorGeofencing::trace(Visitor* visitor)
49 { 49 {
50 visitor->trace(m_geofencing); 50 visitor->trace(m_geofencing);
51 WillBeHeapSupplement<WorkerNavigator>::trace(visitor); 51 WillBeHeapSupplement<WorkerNavigator>::trace(visitor);
52 } 52 }
53 53
54 } // namespace blink 54 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/geofencing/WorkerNavigatorGeofencing.h ('k') | Source/modules/geofencing/WorkerNavigatorGeofencing.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698