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

Side by Side Diff: third_party/WebKit/Source/modules/permissions/Permissions.h

Issue 1426563003: Permissions API: move multiple request to requestAll(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef Permissions_h 5 #ifndef Permissions_h
6 #define Permissions_h 6 #define Permissions_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 10 matching lines...) Expand all
21 , public ScriptWrappable { 21 , public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
23 public: 23 public:
24 DEFINE_INLINE_TRACE() { } 24 DEFINE_INLINE_TRACE() { }
25 25
26 // TODO(mlamouri): Find better place for this. https://crbug.com/510948 26 // TODO(mlamouri): Find better place for this. https://crbug.com/510948
27 static WebPermissionClient* getClient(ExecutionContext*); 27 static WebPermissionClient* getClient(ExecutionContext*);
28 28
29 ScriptPromise query(ScriptState*, const Dictionary&); 29 ScriptPromise query(ScriptState*, const Dictionary&);
30 ScriptPromise request(ScriptState*, const Dictionary&); 30 ScriptPromise request(ScriptState*, const Dictionary&);
31 ScriptPromise request(ScriptState*, const Vector<Dictionary>&);
32 ScriptPromise revoke(ScriptState*, const Dictionary&); 31 ScriptPromise revoke(ScriptState*, const Dictionary&);
32 ScriptPromise requestAll(ScriptState*, const Vector<Dictionary>&);
33 }; 33 };
34 34
35 } // namespace blink 35 } // namespace blink
36 36
37 #endif // Permissions_h 37 #endif // Permissions_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/modules/permissions/Permissions.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698