OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class ExceptionState; | 45 class ExceptionState; |
46 class ExecutionContext; | 46 class ExecutionContext; |
47 class MessagePort; | 47 class MessagePort; |
48 class SerializedScriptValue; | 48 class SerializedScriptValue; |
49 | 49 |
50 // Not to be confused with WebMessagePortChannelArray; this one uses Vector and | 50 // Not to be confused with WebMessagePortChannelArray; this one uses Vector and |
51 // std::unique_ptr instead of WebVector and raw pointers. | 51 // std::unique_ptr instead of WebVector and raw pointers. |
52 typedef Vector<WebMessagePortChannelUniquePtr, 1> MessagePortChannelArray; | 52 typedef Vector<WebMessagePortChannelUniquePtr, 1> MessagePortChannelArray; |
53 | 53 |
54 class CORE_EXPORT MessagePort : public EventTargetWithInlineData, | 54 class CORE_EXPORT MessagePort : public EventTargetWithInlineData, |
55 public ActiveScriptWrappable, | 55 public ActiveScriptWrappable<MessagePort>, |
56 public SuspendableObject, | 56 public SuspendableObject, |
57 public WebMessagePortChannelClient { | 57 public WebMessagePortChannelClient { |
58 DEFINE_WRAPPERTYPEINFO(); | 58 DEFINE_WRAPPERTYPEINFO(); |
59 USING_GARBAGE_COLLECTED_MIXIN(MessagePort); | 59 USING_GARBAGE_COLLECTED_MIXIN(MessagePort); |
60 | 60 |
61 public: | 61 public: |
62 static MessagePort* create(ExecutionContext&); | 62 static MessagePort* create(ExecutionContext&); |
63 ~MessagePort() override; | 63 ~MessagePort() override; |
64 | 64 |
65 void postMessage(ExecutionContext*, | 65 void postMessage(ExecutionContext*, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 WebMessagePortChannelUniquePtr m_entangledChannel; | 143 WebMessagePortChannelUniquePtr m_entangledChannel; |
144 | 144 |
145 bool m_started; | 145 bool m_started; |
146 bool m_closed; | 146 bool m_closed; |
147 }; | 147 }; |
148 | 148 |
149 } // namespace blink | 149 } // namespace blink |
150 | 150 |
151 #endif // MessagePort_h | 151 #endif // MessagePort_h |
OLD | NEW |