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

Unified Diff: Source/modules/geofencing/NavigatorGeofencing.cpp

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

Powered by Google App Engine
This is Rietveld 408576698