| 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 PermissionStatus_h | 5 #ifndef PermissionStatus_h |
| 6 #define PermissionStatus_h | 6 #define PermissionStatus_h |
| 7 | 7 |
| 8 #include "core/dom/ActiveDOMObject.h" | 8 #include "core/dom/ActiveDOMObject.h" |
| 9 #include "core/events/EventTarget.h" | 9 #include "core/events/EventTarget.h" |
| 10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PermissionStatus); | 29 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PermissionStatus); |
| 30 DEFINE_WRAPPERTYPEINFO(); | 30 DEFINE_WRAPPERTYPEINFO(); |
| 31 public: | 31 public: |
| 32 static PermissionStatus* take(ScriptPromiseResolver*, WebPermissionStatus, W
ebPermissionType); | 32 static PermissionStatus* take(ScriptPromiseResolver*, WebPermissionStatus, W
ebPermissionType); |
| 33 | 33 |
| 34 static PermissionStatus* createAndListen(ExecutionContext*, WebPermissionSta
tus, WebPermissionType); | 34 static PermissionStatus* createAndListen(ExecutionContext*, WebPermissionSta
tus, WebPermissionType); |
| 35 ~PermissionStatus() override; | 35 ~PermissionStatus() override; |
| 36 | 36 |
| 37 // EventTarget implementation. | 37 // EventTarget implementation. |
| 38 const AtomicString& interfaceName() const override; | 38 const AtomicString& interfaceName() const override; |
| 39 ExecutionContext* executionContext() const override; | 39 ExecutionContext* getExecutionContext() const override; |
| 40 | 40 |
| 41 // WebPermissionObserver implementation. | 41 // WebPermissionObserver implementation. |
| 42 void permissionChanged(WebPermissionType, WebPermissionStatus) override; | 42 void permissionChanged(WebPermissionType, WebPermissionStatus) override; |
| 43 | 43 |
| 44 // ActiveDOMObject implementation. | 44 // ActiveDOMObject implementation. |
| 45 bool hasPendingActivity() const override; | 45 bool hasPendingActivity() const override; |
| 46 void suspend() override; | 46 void suspend() override; |
| 47 void resume() override; | 47 void resume() override; |
| 48 void stop() override; | 48 void stop() override; |
| 49 | 49 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 60 void stopListening(); | 60 void stopListening(); |
| 61 | 61 |
| 62 WebPermissionStatus m_status; | 62 WebPermissionStatus m_status; |
| 63 WebPermissionType m_type; | 63 WebPermissionType m_type; |
| 64 bool m_listening; | 64 bool m_listening; |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace blink | 67 } // namespace blink |
| 68 | 68 |
| 69 #endif // PermissionStatus_h | 69 #endif // PermissionStatus_h |
| OLD | NEW |