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

Side by Side Diff: Source/bindings/core/v8/PostMessage.h

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 2 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 | Annotate | Revision Log
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 PostMessage_h 5 #ifndef PostMessage_h
6 #define PostMessage_h 6 #define PostMessage_h
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/core/v8/SerializedScriptValue.h" 9 #include "bindings/core/v8/SerializedScriptValue.h"
10 #include "bindings/core/v8/V8Binding.h" 10 #include "bindings/core/v8/V8Binding.h"
11 #include "bindings/core/v8/V8BindingMacros.h" 11 #include "bindings/core/v8/V8BindingMacros.h"
12 #include "core/dom/DOMArrayBuffer.h"
12 #include "core/dom/MessagePort.h" 13 #include "core/dom/MessagePort.h"
13 #include "wtf/ArrayBuffer.h"
14 #include <v8.h> 14 #include <v8.h>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class ExecutionContext; 18 class ExecutionContext;
19 19
20 // FIXME: This should be auto-generated by a code generator template. 20 // FIXME: This should be auto-generated by a code generator template.
21 template <class Type> 21 template <class Type>
22 void postMessageMethodCommon(const char* interfaceName, Type* instance, const v8 ::FunctionCallbackInfo<v8::Value>& info) 22 void postMessageMethodCommon(const char* interfaceName, Type* instance, const v8 ::FunctionCallbackInfo<v8::Value>& info)
23 { 23 {
(...skipping 12 matching lines...) Expand all
36 return; 36 return;
37 // FIXME: Only pass context/exceptionState if instance really requires it. 37 // FIXME: Only pass context/exceptionState if instance really requires it.
38 ExecutionContext* context = currentExecutionContext(info.GetIsolate()); 38 ExecutionContext* context = currentExecutionContext(info.GetIsolate());
39 instance->postMessage(context, message.release(), &ports, exceptionState); 39 instance->postMessage(context, message.release(), &ports, exceptionState);
40 exceptionState.throwIfNeeded(); 40 exceptionState.throwIfNeeded();
41 } 41 }
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // PostMessage_h 45 #endif // PostMessage_h
OLDNEW
« no previous file with comments | « Source/bindings/core/v8/DictionaryHelperForCore.cpp ('k') | Source/bindings/core/v8/SerializedScriptValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698