| 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 AcceptConnectionObserver_h | 5 #ifndef AcceptConnectionObserver_h |
| 6 #define AcceptConnectionObserver_h | 6 #define AcceptConnectionObserver_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 9 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "modules/ModulesExport.h" | 10 #include "modules/ModulesExport.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 class ThenFunction; | 53 class ThenFunction; |
| 54 | 54 |
| 55 AcceptConnectionObserver(ExecutionContext*, int eventID); | 55 AcceptConnectionObserver(ExecutionContext*, int eventID); |
| 56 AcceptConnectionObserver(ServicePortCollection*, PassOwnPtr<WebServicePortCo
nnectEventCallbacks>, WebServicePortID, const KURL& targetURL); | 56 AcceptConnectionObserver(ServicePortCollection*, PassOwnPtr<WebServicePortCo
nnectEventCallbacks>, WebServicePortID, const KURL& targetURL); |
| 57 | 57 |
| 58 int m_eventID; | 58 int m_eventID; |
| 59 OwnPtr<WebServicePortConnectEventCallbacks> m_callbacks; | 59 OwnPtr<WebServicePortConnectEventCallbacks> m_callbacks; |
| 60 Member<ServicePortCollection> m_collection; | 60 Member<ServicePortCollection> m_collection; |
| 61 WebServicePortID m_portID; | 61 WebServicePortID m_portID; |
| 62 KURL m_targetURL; | 62 KURL m_targetURL; |
| 63 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; | 63 Member<ScriptPromiseResolver> m_resolver; |
| 64 | 64 |
| 65 enum State { Initial, Pending, Done }; | 65 enum State { Initial, Pending, Done }; |
| 66 State m_state; | 66 State m_state; |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace blink | 69 } // namespace blink |
| 70 | 70 |
| 71 #endif // AcceptConnectionObserver_h | 71 #endif // AcceptConnectionObserver_h |
| OLD | NEW |