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

Unified Diff: Source/modules/geofencing/Geofencing.h

Issue 401713005: Move all geofencing code into its own module separate from geolocation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update test expectations Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/geofencing/CircularRegion.idl ('k') | Source/modules/geofencing/Geofencing.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/geofencing/CircularRegion.idl ('k') | Source/modules/geofencing/Geofencing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698