| 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 #include "config.h" | 5 #include "config.h" |
| 6 #include "bindings/modules/v8/V8Client.h" | 6 #include "bindings/modules/v8/V8Client.h" |
| 7 | 7 |
| 8 #include "bindings/v8/ExceptionMessages.h" | 8 #include "bindings/v8/ExceptionMessages.h" |
| 9 #include "bindings/v8/ExceptionState.h" | 9 #include "bindings/v8/ExceptionState.h" |
| 10 #include "bindings/v8/SerializedScriptValue.h" | 10 #include "bindings/v8/SerializedScriptValue.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0
], &ports, &arrayBuffers, exceptionState, info.GetIsolate()); | 31 RefPtr<SerializedScriptValue> message = SerializedScriptValue::create(info[0
], &ports, &arrayBuffers, exceptionState, info.GetIsolate()); |
| 32 if (exceptionState.throwIfNeeded()) | 32 if (exceptionState.throwIfNeeded()) |
| 33 return; | 33 return; |
| 34 ExecutionContext* context = currentExecutionContext(info.GetIsolate()); | 34 ExecutionContext* context = currentExecutionContext(info.GetIsolate()); |
| 35 client->postMessage(context, message.release(), &ports, exceptionState); | 35 client->postMessage(context, message.release(), &ports, exceptionState); |
| 36 exceptionState.throwIfNeeded(); | 36 exceptionState.throwIfNeeded(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 } // namespace WebCore | 39 } // namespace WebCore |
| OLD | NEW |