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

Side by Side Diff: third_party/WebKit/Source/core/workers/InProcessWorkerBase.h

Issue 2414333003: WebMessaging: Send transferable ArrayBuffers by copy-and-neuter semantics (Closed)
Patch Set: fix tests Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 InProcessWorkerBase_h 5 #ifndef InProcessWorkerBase_h
6 #define InProcessWorkerBase_h 6 #define InProcessWorkerBase_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/dom/ActiveDOMObject.h" 10 #include "core/dom/ActiveDOMObject.h"
(...skipping 16 matching lines...) Expand all
27 // creates them. 27 // creates them.
28 class CORE_EXPORT InProcessWorkerBase : public AbstractWorker, 28 class CORE_EXPORT InProcessWorkerBase : public AbstractWorker,
29 public ActiveScriptWrappable { 29 public ActiveScriptWrappable {
30 public: 30 public:
31 ~InProcessWorkerBase() override; 31 ~InProcessWorkerBase() override;
32 32
33 void postMessage(ExecutionContext*, 33 void postMessage(ExecutionContext*,
34 PassRefPtr<SerializedScriptValue> message, 34 PassRefPtr<SerializedScriptValue> message,
35 const MessagePortArray&, 35 const MessagePortArray&,
36 ExceptionState&); 36 ExceptionState&);
37 static bool canTransferArrayBuffer() { return true; }
37 void terminate(); 38 void terminate();
38 39
39 // ActiveDOMObject 40 // ActiveDOMObject
40 void contextDestroyed() override; 41 void contextDestroyed() override;
41 42
42 // ScriptWrappable 43 // ScriptWrappable
43 bool hasPendingActivity() const final; 44 bool hasPendingActivity() const final;
44 45
45 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 46 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
46 47
(...skipping 17 matching lines...) Expand all
64 65
65 RefPtr<WorkerScriptLoader> m_scriptLoader; 66 RefPtr<WorkerScriptLoader> m_scriptLoader;
66 67
67 // The proxy outlives the worker to perform thread shutdown. 68 // The proxy outlives the worker to perform thread shutdown.
68 InProcessWorkerMessagingProxy* m_contextProxy; 69 InProcessWorkerMessagingProxy* m_contextProxy;
69 }; 70 };
70 71
71 } // namespace blink 72 } // namespace blink
72 73
73 #endif // InProcessWorkerBase_h 74 #endif // InProcessWorkerBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698