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

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: remove unused checks 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 m_id; } 58 const String& id() const { return m_id; }
58 const String& url() const { return m_url; } 59 const String& url() const { return m_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(const 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 HeapDeque<Member<Message>> m_messages; 138 HeapDeque<Member<Message>> m_messages;
138 139
139 BinaryType m_binaryType; 140 BinaryType m_binaryType;
140 141
141 std::unique_ptr<WebPresentationConnectionProxy> m_proxy; 142 std::unique_ptr<WebPresentationConnectionProxy> m_proxy;
142 }; 143 };
143 144
144 } // namespace blink 145 } // namespace blink
145 146
146 #endif // PresentationConnection_h 147 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698