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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.h

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 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 PresentationConnection_h 5 #ifndef PresentationConnection_h
6 #define PresentationConnection_h 6 #define PresentationConnection_h
7 7
8 #include <memory> 8 #include <memory>
9 #include "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "core/dom/NotShared.h"
10 #include "core/events/EventTarget.h" 11 #include "core/events/EventTarget.h"
11 #include "core/fileapi/Blob.h" 12 #include "core/fileapi/Blob.h"
12 #include "core/fileapi/FileError.h" 13 #include "core/fileapi/FileError.h"
13 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
14 #include "platform/weborigin/KURL.h" 15 #include "platform/weborigin/KURL.h"
15 #include "public/platform/modules/presentation/WebPresentationConnection.h" 16 #include "public/platform/modules/presentation/WebPresentationConnection.h"
16 #include "public/platform/modules/presentation/WebPresentationConnectionProxy.h" 17 #include "public/platform/modules/presentation/WebPresentationConnectionProxy.h"
17 #include "public/platform/modules/presentation/WebPresentationController.h" 18 #include "public/platform/modules/presentation/WebPresentationController.h"
18 #include "public/platform/modules/presentation/WebPresentationInfo.h" 19 #include "public/platform/modules/presentation/WebPresentationInfo.h"
19 #include "wtf/text/WTFString.h" 20 #include "wtf/text/WTFString.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 ExecutionContext* GetExecutionContext() const override; 54 ExecutionContext* GetExecutionContext() const override;
54 55
55 DECLARE_VIRTUAL_TRACE(); 56 DECLARE_VIRTUAL_TRACE();
56 57
57 const String& id() const { return id_; } 58 const String& id() const { return id_; }
58 const String& url() const { return url_; } 59 const String& url() const { return url_; }
59 const WTF::AtomicString& state() const; 60 const WTF::AtomicString& state() const;
60 61
61 void send(const String& message, ExceptionState&); 62 void send(const String& message, ExceptionState&);
62 void send(DOMArrayBuffer*, ExceptionState&); 63 void send(DOMArrayBuffer*, ExceptionState&);
63 void send(DOMArrayBufferView*, ExceptionState&); 64 void send(NotShared<DOMArrayBufferView>, ExceptionState&);
64 void send(Blob*, ExceptionState&); 65 void send(Blob*, ExceptionState&);
65 void close(); 66 void close();
66 void terminate(); 67 void terminate();
67 68
68 String binaryType() const; 69 String binaryType() const;
69 void setBinaryType(const String&); 70 void setBinaryType(const String&);
70 71
71 DEFINE_ATTRIBUTE_EVENT_LISTENER(message); 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
72 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect);
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 HeapDeque<Member<Message>> messages_; 139 HeapDeque<Member<Message>> messages_;
139 140
140 BinaryType binary_type_; 141 BinaryType binary_type_;
141 142
142 std::unique_ptr<WebPresentationConnectionProxy> proxy_; 143 std::unique_ptr<WebPresentationConnectionProxy> proxy_;
143 }; 144 };
144 145
145 } // namespace blink 146 } // namespace blink
146 147
147 #endif // PresentationConnection_h 148 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698