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

Unified Diff: Source/modules/geofencing/NavigatorGeofencing.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/GeofencingRegion.idl ('k') | Source/modules/geofencing/NavigatorGeofencing.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/geofencing/GeofencingRegion.idl ('k') | Source/modules/geofencing/NavigatorGeofencing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698