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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 private: | 47 private: |
48 class ThenFunction; | 48 class ThenFunction; |
49 | 49 |
50 AcceptConnectionObserver(ServicePortCollection*, PassOwnPtr<WebServicePortCo
nnectEventCallbacks>, WebServicePortID, const KURL& targetURL); | 50 AcceptConnectionObserver(ServicePortCollection*, PassOwnPtr<WebServicePortCo
nnectEventCallbacks>, WebServicePortID, const KURL& targetURL); |
51 | 51 |
52 OwnPtr<WebServicePortConnectEventCallbacks> m_callbacks; | 52 OwnPtr<WebServicePortConnectEventCallbacks> m_callbacks; |
53 Member<ServicePortCollection> m_collection; | 53 Member<ServicePortCollection> m_collection; |
54 WebServicePortID m_portID; | 54 WebServicePortID m_portID; |
55 KURL m_targetURL; | 55 KURL m_targetURL; |
56 RefPtrWillBeMember<ScriptPromiseResolver> m_resolver; | 56 Member<ScriptPromiseResolver> m_resolver; |
57 | 57 |
58 enum State { Initial, Pending, Done }; | 58 enum State { Initial, Pending, Done }; |
59 State m_state; | 59 State m_state; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // AcceptConnectionObserver_h | 64 #endif // AcceptConnectionObserver_h |
OLD | NEW |