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

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

Issue 623813002: Blink side of exposing the service worker registration associated with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: hopefully correctly fix compile Created 6 years, 2 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
Index: Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h
diff --git a/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h b/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6aab4e955f37817b60a453019ecde6bb3e8e6cf
--- /dev/null
+++ b/Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.h
@@ -0,0 +1,38 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ServiceWorkerRegistrationGeofencing_h
+#define ServiceWorkerRegistrationGeofencing_h
+
+#include "platform/Supplementable.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class Geofencing;
+class ServiceWorkerRegistration;
+
+class ServiceWorkerRegistrationGeofencing final : public GarbageCollectedFinalized<ServiceWorkerRegistrationGeofencing>, public HeapSupplement<ServiceWorkerRegistration> {
+ USING_GARBAGE_COLLECTED_MIXIN(ServiceWorkerRegistrationGeofencing);
+ WTF_MAKE_NONCOPYABLE(ServiceWorkerRegistrationGeofencing);
+public:
+ virtual ~ServiceWorkerRegistrationGeofencing();
+ static ServiceWorkerRegistrationGeofencing& from(ServiceWorkerRegistration&);
+
+ static Geofencing* geofencing(ServiceWorkerRegistration&);
+ Geofencing* geofencing();
+
+ virtual void trace(Visitor*) override;
+
+private:
+ explicit ServiceWorkerRegistrationGeofencing(ServiceWorkerRegistration*);
+ static const char* supplementName();
+
+ Member<ServiceWorkerRegistration> m_registration;
+ Member<Geofencing> m_geofencing;
+};
+
+} // namespace blink
+
+#endif // ServiceWorkerRegistrationGeofencing_h
« no previous file with comments | « Source/modules/geofencing/NavigatorGeofencing.idl ('k') | Source/modules/geofencing/ServiceWorkerRegistrationGeofencing.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698