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

Side by Side Diff: third_party/WebKit/Source/core/dom/MessagePort.h

Issue 2541683002: Make ImageBitmap transfers work in cases that require serialization (Closed)
Patch Set: Created 4 years 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 /* 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*,
66 PassRefPtr<SerializedScriptValue> message, 66 PassRefPtr<SerializedScriptValue> message,
67 const MessagePortArray&, 67 const MessagePortArray&,
68 ExceptionState&); 68 ExceptionState&);
69 static bool canTransferArrayBuffer() { return false; } 69 static bool canTransferArrayBuffersAndImageBitmaps() { return false; }
70 70
71 void start(); 71 void start();
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>);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698