Chromium Code Reviews| OLD | NEW |
|---|---|
| 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/NavigatorGeofencing.h" | 6 #include "modules/geofencing/NavigatorGeofencing.h" |
| 7 | 7 |
| 8 #include "core/frame/Navigator.h" | 8 #include "core/frame/Navigator.h" |
| 9 #include "modules/geofencing/Geofencing.h" | 9 #include "modules/geofencing/Geofencing.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 NavigatorGeofencing::NavigatorGeofencing() | 13 NavigatorGeofencing::NavigatorGeofencing() |
|
Michael van Ouwerkerk
2014/10/09 10:56:27
Shouldn't this whole class be deleted now?
Marijn Kruisselbrink
2014/10/09 18:10:54
Quoting the CL description "This still leaves the
michaeln
2014/10/12 23:51:02
From these review comments, looks like the existin
Marijn Kruisselbrink
2014/10/13 19:09:59
I removed NavigatorGeofencing, and added FIXMEs to
| |
| 14 { | 14 { |
| 15 } | 15 } |
| 16 | 16 |
| 17 NavigatorGeofencing::~NavigatorGeofencing() | 17 NavigatorGeofencing::~NavigatorGeofencing() |
| 18 { | 18 { |
| 19 } | 19 } |
| 20 | 20 |
| 21 const char* NavigatorGeofencing::supplementName() | 21 const char* NavigatorGeofencing::supplementName() |
| 22 { | 22 { |
| 23 return "NavigatorGeofencing"; | 23 return "NavigatorGeofencing"; |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 34 } | 34 } |
| 35 | 35 |
| 36 Geofencing* NavigatorGeofencing::geofencing(Navigator& navigator) | 36 Geofencing* NavigatorGeofencing::geofencing(Navigator& navigator) |
| 37 { | 37 { |
| 38 return NavigatorGeofencing::from(navigator).geofencing(); | 38 return NavigatorGeofencing::from(navigator).geofencing(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 Geofencing* NavigatorGeofencing::geofencing() | 41 Geofencing* NavigatorGeofencing::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 NavigatorGeofencing::trace(Visitor* visitor) | 48 void NavigatorGeofencing::trace(Visitor* visitor) |
| 49 { | 49 { |
| 50 visitor->trace(m_geofencing); | 50 visitor->trace(m_geofencing); |
| 51 WillBeHeapSupplement<Navigator>::trace(visitor); | 51 WillBeHeapSupplement<Navigator>::trace(visitor); |
| 52 } | 52 } |
| 53 | 53 |
| 54 } // namespace blink | 54 } // namespace blink |
| OLD | NEW |