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

Unified Diff: Source/modules/permissions/Permissions.h

Issue 760223003: Stub implementation of Permissions API module. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: no copies Created 6 years, 1 month 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/permissions/Permissions.h
diff --git a/Source/modules/permissions/Permissions.h b/Source/modules/permissions/Permissions.h
new file mode 100644
index 0000000000000000000000000000000000000000..08c2babadcb5895bffa6620f0a6eb7d67e2b532b
--- /dev/null
+++ b/Source/modules/permissions/Permissions.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 Permissions_h
+#define Permissions_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+
Peter Beverloo 2014/12/01 11:30:35 + bindings/core/v8/ScriptPromise.h + platform/heap
mlamouri (slow - plz ping) 2014/12/01 12:36:00 Done. I fwd declared AtomicString.
+namespace blink {
+
+class ScriptState;
+class ScriptPromise;
+
+class Permissions final
+ : public GarbageCollectedFinalized<Permissions>
+ , public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+public:
+ virtual ~Permissions();
+
+ virtual void trace(Visitor*);
+
+ static ScriptPromise query(ScriptState*, const AtomicString&);
+};
+
+} // namespace blink
+
+#endif // Permissions_h

Powered by Google App Engine
This is Rietveld 408576698