| Index: Source/modules/geofencing/NavigatorGeofencing.cpp
|
| diff --git a/Source/modules/push_messaging/NavigatorPushManager.cpp b/Source/modules/geofencing/NavigatorGeofencing.cpp
|
| similarity index 34%
|
| copy from Source/modules/push_messaging/NavigatorPushManager.cpp
|
| copy to Source/modules/geofencing/NavigatorGeofencing.cpp
|
| index f3636655a522522f3da3bc941f2a5eedf9d06281..4a50edbf34bad7cac52c95bf0035aec01aafc3dd 100644
|
| --- a/Source/modules/push_messaging/NavigatorPushManager.cpp
|
| +++ b/Source/modules/geofencing/NavigatorGeofencing.cpp
|
| @@ -3,51 +3,51 @@
|
| // found in the LICENSE file.
|
|
|
| #include "config.h"
|
| -#include "modules/push_messaging/NavigatorPushManager.h"
|
| +#include "modules/geofencing/NavigatorGeofencing.h"
|
|
|
| #include "core/frame/Navigator.h"
|
| -#include "modules/push_messaging/PushManager.h"
|
| +#include "modules/geofencing/Geofencing.h"
|
|
|
| namespace blink {
|
|
|
| -NavigatorPushManager::NavigatorPushManager()
|
| +NavigatorGeofencing::NavigatorGeofencing()
|
| {
|
| }
|
|
|
| -NavigatorPushManager::~NavigatorPushManager()
|
| +NavigatorGeofencing::~NavigatorGeofencing()
|
| {
|
| }
|
|
|
| -const char* NavigatorPushManager::supplementName()
|
| +const char* NavigatorGeofencing::supplementName()
|
| {
|
| - return "NavigatorPushManager";
|
| + return "NavigatorGeofencing";
|
| }
|
|
|
| -NavigatorPushManager& NavigatorPushManager::from(Navigator& navigator)
|
| +NavigatorGeofencing& NavigatorGeofencing::from(Navigator& navigator)
|
| {
|
| - NavigatorPushManager* supplement = static_cast<NavigatorPushManager*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
|
| + NavigatorGeofencing* supplement = static_cast<NavigatorGeofencing*>(WillBeHeapSupplement<Navigator>::from(navigator, supplementName()));
|
| if (!supplement) {
|
| - supplement = new NavigatorPushManager();
|
| + supplement = new NavigatorGeofencing();
|
| provideTo(navigator, supplementName(), adoptPtrWillBeNoop(supplement));
|
| }
|
| return *supplement;
|
| }
|
|
|
| -PushManager* NavigatorPushManager::push(Navigator& navigator)
|
| +Geofencing* NavigatorGeofencing::geofencing(Navigator& navigator)
|
| {
|
| - return NavigatorPushManager::from(navigator).pushManager();
|
| + return NavigatorGeofencing::from(navigator).geofencing();
|
| }
|
|
|
| -PushManager* NavigatorPushManager::pushManager()
|
| +Geofencing* NavigatorGeofencing::geofencing()
|
| {
|
| - if (!m_pushManager)
|
| - m_pushManager = PushManager::create();
|
| - return m_pushManager.get();
|
| + if (!m_geofencing)
|
| + m_geofencing = Geofencing::create();
|
| + return m_geofencing.get();
|
| }
|
|
|
| -void NavigatorPushManager::trace(Visitor* visitor)
|
| +void NavigatorGeofencing::trace(Visitor* visitor)
|
| {
|
| - visitor->trace(m_pushManager);
|
| + visitor->trace(m_geofencing);
|
| WillBeHeapSupplement<Navigator>::trace(visitor);
|
| }
|
|
|
|
|