| Index: Source/modules/geofencing/NavigatorGeofencing.h
|
| diff --git a/Source/modules/push_messaging/NavigatorPushManager.h b/Source/modules/geofencing/NavigatorGeofencing.h
|
| similarity index 37%
|
| copy from Source/modules/push_messaging/NavigatorPushManager.h
|
| copy to Source/modules/geofencing/NavigatorGeofencing.h
|
| index 29f508f3964178758ca3f32ab993552ec3ffb740..b1b149709f39d7d9f45a348531113c3e802943ac 100644
|
| --- a/Source/modules/push_messaging/NavigatorPushManager.h
|
| +++ b/Source/modules/geofencing/NavigatorGeofencing.h
|
| @@ -2,35 +2,38 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef NavigatorPushManager_h
|
| -#define NavigatorPushManager_h
|
| +#ifndef NavigatorGeofencing_h
|
| +#define NavigatorGeofencing_h
|
|
|
| #include "platform/Supplementable.h"
|
| #include "platform/heap/Handle.h"
|
|
|
| namespace blink {
|
|
|
| +class Geofencing;
|
| class Navigator;
|
| -class PushManager;
|
|
|
| -class NavigatorPushManager FINAL : public NoBaseWillBeGarbageCollectedFinalized<NavigatorPushManager>, public WillBeHeapSupplement<Navigator> {
|
| - WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorPushManager);
|
| +class NavigatorGeofencing FINAL
|
| + : public NoBaseWillBeGarbageCollectedFinalized<NavigatorGeofencing>
|
| + , public WillBeHeapSupplement<Navigator> {
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorGeofencing);
|
| +
|
| public:
|
| - virtual ~NavigatorPushManager();
|
| - static NavigatorPushManager& from(Navigator&);
|
| + virtual ~NavigatorGeofencing();
|
| + static NavigatorGeofencing& from(Navigator&);
|
|
|
| - static PushManager* push(Navigator&);
|
| - PushManager* pushManager();
|
| + static Geofencing* geofencing(Navigator&);
|
| + Geofencing* geofencing();
|
|
|
| - void trace(Visitor*);
|
| + virtual void trace(Visitor*) OVERRIDE;
|
|
|
| private:
|
| - NavigatorPushManager();
|
| + NavigatorGeofencing();
|
| static const char* supplementName();
|
|
|
| - PersistentWillBeMember<PushManager> m_pushManager;
|
| + PersistentWillBeMember<Geofencing> m_geofencing;
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // NavigatorPushManager_h
|
| +#endif // NavigatorGeofencing_h
|
|
|