| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 void close(); | 72 void close(); |
| 73 | 73 |
| 74 void entangle(WebMessagePortChannelUniquePtr); | 74 void entangle(WebMessagePortChannelUniquePtr); |
| 75 WebMessagePortChannelUniquePtr disentangle(); | 75 WebMessagePortChannelUniquePtr disentangle(); |
| 76 | 76 |
| 77 // Returns nullptr if the passed-in array is nullptr/empty. | 77 // Returns nullptr if the passed-in array is nullptr/empty. |
| 78 static std::unique_ptr<WebMessagePortChannelArray> | 78 static std::unique_ptr<WebMessagePortChannelArray> |
| 79 toWebMessagePortChannelArray(std::unique_ptr<MessagePortChannelArray>); | 79 toWebMessagePortChannelArray(std::unique_ptr<MessagePortChannelArray>); |
| 80 | 80 |
| 81 // Returns an empty array if the passed array is empty. | 81 // Returns an empty array if the passed array is empty. |
| 82 static MessagePortArray* toMessagePortArray( | 82 static MessagePortArray* toMessagePortArray(ExecutionContext*, |
| 83 ExecutionContext*, | 83 WebMessagePortChannelArray); |
| 84 const WebMessagePortChannelArray&); | |
| 85 | 84 |
| 86 // Returns nullptr if there is an exception, or if the passed-in array is | 85 // Returns nullptr if there is an exception, or if the passed-in array is |
| 87 // nullptr/empty. | 86 // nullptr/empty. |
| 88 static std::unique_ptr<MessagePortChannelArray> | 87 static std::unique_ptr<MessagePortChannelArray> |
| 89 disentanglePorts(ExecutionContext*, const MessagePortArray&, ExceptionState&); | 88 disentanglePorts(ExecutionContext*, const MessagePortArray&, ExceptionState&); |
| 90 | 89 |
| 91 // Returns an empty array if the passed array is nullptr/empty. | 90 // Returns an empty array if the passed array is nullptr/empty. |
| 92 static MessagePortArray* entanglePorts( | 91 static MessagePortArray* entanglePorts( |
| 93 ExecutionContext&, | 92 ExecutionContext&, |
| 94 std::unique_ptr<MessagePortChannelArray>); | 93 std::unique_ptr<MessagePortChannelArray>); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 141 |
| 143 WebMessagePortChannelUniquePtr m_entangledChannel; | 142 WebMessagePortChannelUniquePtr m_entangledChannel; |
| 144 | 143 |
| 145 bool m_started; | 144 bool m_started; |
| 146 bool m_closed; | 145 bool m_closed; |
| 147 }; | 146 }; |
| 148 | 147 |
| 149 } // namespace blink | 148 } // namespace blink |
| 150 | 149 |
| 151 #endif // MessagePort_h | 150 #endif // MessagePort_h |
| OLD | NEW |