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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.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 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 ServiceWorkerClient_h 5 #ifndef ServiceWorkerClient_h
6 #define ServiceWorkerClient_h 6 #define ServiceWorkerClient_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/core/v8/SerializedScriptValue.h" 10 #include "bindings/core/v8/SerializedScriptValue.h"
(...skipping 26 matching lines...) Expand all
37 37
38 // Client.idl 38 // Client.idl
39 String url() const { return m_url; } 39 String url() const { return m_url; }
40 String frameType() const; 40 String frameType() const;
41 String id() const { return m_uuid; } 41 String id() const { return m_uuid; }
42 void postMessage(ExecutionContext*, 42 void postMessage(ExecutionContext*,
43 PassRefPtr<SerializedScriptValue> message, 43 PassRefPtr<SerializedScriptValue> message,
44 const MessagePortArray&, 44 const MessagePortArray&,
45 ExceptionState&); 45 ExceptionState&);
46 46
47 static bool canTransferArrayBuffer() { return false; }
48
47 DEFINE_INLINE_VIRTUAL_TRACE() {} 49 DEFINE_INLINE_VIRTUAL_TRACE() {}
48 50
49 protected: 51 protected:
50 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); 52 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&);
51 53
52 String uuid() const { return m_uuid; } 54 String uuid() const { return m_uuid; }
53 55
54 private: 56 private:
55 String m_uuid; 57 String m_uuid;
56 String m_url; 58 String m_url;
57 WebURLRequest::FrameType m_frameType; 59 WebURLRequest::FrameType m_frameType;
58 }; 60 };
59 61
60 } // namespace blink 62 } // namespace blink
61 63
62 #endif // ServiceWorkerClient_h 64 #endif // ServiceWorkerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698