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

Side by Side Diff: Source/modules/presentation/PresentationSession.h

Issue 1290693003: Presentation API: add UMA. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 4 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 PresentationSession_h 5 #ifndef PresentationSession_h
6 #define PresentationSession_h 6 #define PresentationSession_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 24 matching lines...) Expand all
35 // For CallbackPromiseAdapter. 35 // For CallbackPromiseAdapter.
36 using WebType = OwnPtr<WebPresentationSessionClient>; 36 using WebType = OwnPtr<WebPresentationSessionClient>;
37 37
38 static PresentationSession* take(ScriptPromiseResolver*, PassOwnPtr<WebPrese ntationSessionClient>, PresentationRequest*); 38 static PresentationSession* take(ScriptPromiseResolver*, PassOwnPtr<WebPrese ntationSessionClient>, PresentationRequest*);
39 static PresentationSession* take(PresentationController*, PassOwnPtr<WebPres entationSessionClient>, PresentationRequest*); 39 static PresentationSession* take(PresentationController*, PassOwnPtr<WebPres entationSessionClient>, PresentationRequest*);
40 ~PresentationSession() override; 40 ~PresentationSession() override;
41 41
42 // EventTarget implementation. 42 // EventTarget implementation.
43 const AtomicString& interfaceName() const override; 43 const AtomicString& interfaceName() const override;
44 ExecutionContext* executionContext() const override; 44 ExecutionContext* executionContext() const override;
45 bool addEventListener(const AtomicString& eventType, PassRefPtrWillBeRawPtr< EventListener>, bool capture) override;
45 46
46 DECLARE_VIRTUAL_TRACE(); 47 DECLARE_VIRTUAL_TRACE();
47 48
48 const String id() const { return m_id; } 49 const String id() const { return m_id; }
49 const WTF::AtomicString& state() const; 50 const WTF::AtomicString& state() const;
50 51
51 void send(const String& message, ExceptionState&); 52 void send(const String& message, ExceptionState&);
52 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&); 53 void send(PassRefPtr<DOMArrayBuffer>, ExceptionState&);
53 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&); 54 void send(PassRefPtr<DOMArrayBufferView>, ExceptionState&);
54 void send(Blob*, ExceptionState&); 55 void send(Blob*, ExceptionState&);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // For Blob data handling. 120 // For Blob data handling.
120 Member<BlobLoader> m_blobLoader; 121 Member<BlobLoader> m_blobLoader;
121 Deque<OwnPtr<Message>> m_messages; 122 Deque<OwnPtr<Message>> m_messages;
122 123
123 BinaryType m_binaryType; 124 BinaryType m_binaryType;
124 }; 125 };
125 126
126 } // namespace blink 127 } // namespace blink
127 128
128 #endif // PresentationSession_h 129 #endif // PresentationSession_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/PresentationRequest.idl ('k') | Source/modules/presentation/PresentationSession.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698