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

Unified Diff: Source/platform/exported/WebGeofencingRegionPrivate.h

Issue 464073002: Pass through geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase 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
Index: Source/platform/exported/WebGeofencingRegionPrivate.h
diff --git a/Source/platform/exported/WebGeofencingRegionPrivate.h b/Source/platform/exported/WebGeofencingRegionPrivate.h
new file mode 100644
index 0000000000000000000000000000000000000000..8672f72ed6d846d27af973c22f73fc309242162c
--- /dev/null
+++ b/Source/platform/exported/WebGeofencingRegionPrivate.h
@@ -0,0 +1,29 @@
+// 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 WebGeofencingRegionPrivate_h
+#define WebGeofencingRegionPrivate_h
+
+#include "public/platform/WebGeofencingRegion.h"
+#include "public/platform/WebString.h"
+#include "wtf/ThreadSafeRefCounted.h"
+
+namespace blink {
+
+class WebGeofencingRegionPrivate : public ThreadSafeRefCounted<WebGeofencingRegionPrivate> {
+protected:
+ explicit WebGeofencingRegionPrivate(const WebString& id)
+ : id(id)
+ { }
+
+public:
+ virtual ~WebGeofencingRegionPrivate() { }
+ virtual WebGeofencingRegion::RegionType regionType() const = 0;
+
+ const WebString id;
abarth-chromium 2014/08/23 05:43:34 Why not just store this data in WebGeofencingRegio
+};
+
+} // namespace blink
+
+#endif // WebGeofencingRegionPrivate_h

Powered by Google App Engine
This is Rietveld 408576698