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

Side by Side Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerClient.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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
36 36
37 // Client.idl 37 // Client.idl
38 String url() const { return m_url; } 38 String url() const { return m_url; }
39 String frameType() const; 39 String frameType() const;
40 String id() const { return m_uuid; } 40 String id() const { return m_uuid; }
41 void postMessage(ExecutionContext*, 41 void postMessage(ExecutionContext*,
42 PassRefPtr<SerializedScriptValue> message, 42 PassRefPtr<SerializedScriptValue> message,
43 const MessagePortArray&, 43 const MessagePortArray&,
44 ExceptionState&); 44 ExceptionState&);
45 45
46 static bool canTransferArrayBuffer() { return false; } 46 static bool canTransferArrayBuffersAndImageBitmaps() { return false; }
47 47
48 DEFINE_INLINE_VIRTUAL_TRACE() {} 48 DEFINE_INLINE_VIRTUAL_TRACE() {}
49 49
50 protected: 50 protected:
51 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&); 51 explicit ServiceWorkerClient(const WebServiceWorkerClientInfo&);
52 52
53 String uuid() const { return m_uuid; } 53 String uuid() const { return m_uuid; }
54 54
55 private: 55 private:
56 String m_uuid; 56 String m_uuid;
57 String m_url; 57 String m_url;
58 WebURLRequest::FrameType m_frameType; 58 WebURLRequest::FrameType m_frameType;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // ServiceWorkerClient_h 63 #endif // ServiceWorkerClient_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698