Index: Source/modules/geofencing/Geofencing.h |
diff --git a/Source/modules/push_messaging/PushManager.h b/Source/modules/geofencing/Geofencing.h |
similarity index 45% |
copy from Source/modules/push_messaging/PushManager.h |
copy to Source/modules/geofencing/Geofencing.h |
index a0d06a9d2d68193569713df179f1a6c14e2b136a..434a860329c03cfb3e00980028641dde8501ae95 100644 |
--- a/Source/modules/push_messaging/PushManager.h |
+++ b/Source/modules/geofencing/Geofencing.h |
@@ -2,8 +2,8 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef PushManager_h |
-#define PushManager_h |
+#ifndef Geofencing_h |
+#define Geofencing_h |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "platform/heap/Handle.h" |
@@ -12,24 +12,27 @@ |
namespace blink { |
class ExecutionContext; |
+class GeofencingRegion; |
class ScriptPromise; |
class ScriptState; |
-class PushManager FINAL : public GarbageCollected<PushManager>, public ScriptWrappable { |
+class Geofencing FINAL : public GarbageCollected<Geofencing>, public ScriptWrappable { |
public: |
- static PushManager* create() |
+ static Geofencing* create() |
{ |
- return new PushManager(); |
+ return new Geofencing(); |
} |
- ScriptPromise registerPushMessaging(ScriptState*, const String& senderId); |
+ ScriptPromise registerRegion(ScriptState*, GeofencingRegion*); |
+ ScriptPromise unregisterRegion(ScriptState*, const String& regionId); |
+ ScriptPromise getRegisteredRegions(ScriptState*) const; |
- void trace(Visitor*) { } |
+ virtual void trace(Visitor*) { } |
private: |
- PushManager(); |
+ Geofencing(); |
}; |
} // namespace blink |
-#endif // PushManager_h |
+#endif // Geofencing_h |