| OLD | NEW |
| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 ScriptPromise query(ScriptState*, const Dictionary&); | 31 ScriptPromise query(ScriptState*, const Dictionary&); |
| 32 ScriptPromise request(ScriptState*, const Dictionary&); | 32 ScriptPromise request(ScriptState*, const Dictionary&); |
| 33 ScriptPromise revoke(ScriptState*, const Dictionary&); | 33 ScriptPromise revoke(ScriptState*, const Dictionary&); |
| 34 ScriptPromise requestAll(ScriptState*, const Vector<Dictionary>&); | 34 ScriptPromise requestAll(ScriptState*, const Vector<Dictionary>&); |
| 35 | 35 |
| 36 private: | 36 private: |
| 37 mojom::blink::PermissionService* getService(ExecutionContext*); | 37 mojom::blink::PermissionService* getService(ExecutionContext*); |
| 38 void serviceConnectionError(); | 38 void serviceConnectionError(); |
| 39 void taskComplete(ScriptPromiseResolver*, mojom::blink::PermissionName, mojo
m::blink::PermissionStatus); | 39 void taskComplete(ScriptPromiseResolver*, mojom::blink::PermissionName, mojo
m::blink::PermissionStatus); |
| 40 void batchTaskComplete(ScriptPromiseResolver*, Vector<mojom::blink::Permissi
onName>, Vector<int>, mojo::WTFArray<mojom::blink::PermissionStatus>); | 40 void batchTaskComplete(ScriptPromiseResolver*, Vector<mojom::blink::Permissi
onName>, Vector<int>, const Vector<mojom::blink::PermissionStatus>&); |
| 41 | 41 |
| 42 mojom::blink::PermissionServicePtr m_service; | 42 mojom::blink::PermissionServicePtr m_service; |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif // Permissions_h | 47 #endif // Permissions_h |
| OLD | NEW |