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

Side by Side Diff: Source/modules/navigatorconnect/AcceptConnectionObserver.h

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tidy unit tests Created 5 years, 5 months 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698