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

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

Issue 2148643002: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix LayoutTests Created 4 years, 5 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/events/EventTarget.h" 8 #include "core/events/EventTarget.h"
9 #include "core/fileapi/Blob.h" 9 #include "core/fileapi/Blob.h"
10 #include "core/fileapi/FileError.h" 10 #include "core/fileapi/FileError.h"
(...skipping 27 matching lines...) Expand all
38 static PresentationConnection* take(PresentationController*, std::unique_ptr <WebPresentationConnectionClient>, PresentationRequest*); 38 static PresentationConnection* take(PresentationController*, std::unique_ptr <WebPresentationConnectionClient>, PresentationRequest*);
39 ~PresentationConnection() override; 39 ~PresentationConnection() override;
40 40
41 // EventTarget implementation. 41 // EventTarget implementation.
42 const AtomicString& interfaceName() const override; 42 const AtomicString& interfaceName() const override;
43 ExecutionContext* getExecutionContext() const override; 43 ExecutionContext* getExecutionContext() const override;
44 44
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 46
47 const String& id() const { return m_id; } 47 const String& id() const { return m_id; }
48 const String& url() const { return m_url; }
48 const WTF::AtomicString& state() const; 49 const WTF::AtomicString& state() const;
49 50
50 void send(const String& message, ExceptionState&); 51 void send(const String& message, ExceptionState&);
51 void send(DOMArrayBuffer*, ExceptionState&); 52 void send(DOMArrayBuffer*, ExceptionState&);
52 void send(DOMArrayBufferView*, ExceptionState&); 53 void send(DOMArrayBufferView*, ExceptionState&);
53 void send(Blob*, ExceptionState&); 54 void send(Blob*, ExceptionState&);
54 void close(); 55 void close();
55 void terminate(); 56 void terminate();
56 57
57 String binaryType() const; 58 String binaryType() const;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // For Blob data handling. 115 // For Blob data handling.
115 Member<BlobLoader> m_blobLoader; 116 Member<BlobLoader> m_blobLoader;
116 HeapDeque<Member<Message>> m_messages; 117 HeapDeque<Member<Message>> m_messages;
117 118
118 BinaryType m_binaryType; 119 BinaryType m_binaryType;
119 }; 120 };
120 121
121 } // namespace blink 122 } // namespace blink
122 123
123 #endif // PresentationConnection_h 124 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698