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

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

Issue 2552343009: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed)
Patch Set: resolve code review comments from foolip Created 3 years, 11 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 "core/dom/ContextLifecycleObserver.h" 8 #include "core/dom/ContextLifecycleObserver.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/fileapi/Blob.h" 10 #include "core/fileapi/Blob.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 const WebPresentationSessionInfo&); 45 const WebPresentationSessionInfo&);
46 ~PresentationConnection() override; 46 ~PresentationConnection() override;
47 47
48 // EventTarget implementation. 48 // EventTarget implementation.
49 const AtomicString& interfaceName() const override; 49 const AtomicString& interfaceName() const override;
50 ExecutionContext* getExecutionContext() const override; 50 ExecutionContext* getExecutionContext() const override;
51 51
52 DECLARE_VIRTUAL_TRACE(); 52 DECLARE_VIRTUAL_TRACE();
53 53
54 const String& id() const { return m_id; } 54 const String& id() const { return m_id; }
55 const String& url() const { return m_url; }
55 const WTF::AtomicString& state() const; 56 const WTF::AtomicString& state() const;
56 57
57 void send(const String& message, ExceptionState&); 58 void send(const String& message, ExceptionState&);
58 void send(DOMArrayBuffer*, ExceptionState&); 59 void send(DOMArrayBuffer*, ExceptionState&);
59 void send(DOMArrayBufferView*, ExceptionState&); 60 void send(DOMArrayBufferView*, ExceptionState&);
60 void send(Blob*, ExceptionState&); 61 void send(Blob*, ExceptionState&);
61 void close(); 62 void close();
62 void terminate(); 63 void terminate();
63 64
64 String binaryType() const; 65 String binaryType() const;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // For Blob data handling. 131 // For Blob data handling.
131 Member<BlobLoader> m_blobLoader; 132 Member<BlobLoader> m_blobLoader;
132 HeapDeque<Member<Message>> m_messages; 133 HeapDeque<Member<Message>> m_messages;
133 134
134 BinaryType m_binaryType; 135 BinaryType m_binaryType;
135 }; 136 };
136 137
137 } // namespace blink 138 } // namespace blink
138 139
139 #endif // PresentationConnection_h 140 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698