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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 11 matching lines...) Expand all
22 22
23 class DOMArrayBuffer; 23 class DOMArrayBuffer;
24 class DOMArrayBufferView; 24 class DOMArrayBufferView;
25 class PresentationController; 25 class PresentationController;
26 class PresentationRequest; 26 class PresentationRequest;
27 27
28 class PresentationConnection final 28 class PresentationConnection final
29 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationCon nection> 29 : public RefCountedGarbageCollectedEventTargetWithInlineData<PresentationCon nection>
30 , public DOMWindowProperty { 30 , public DOMWindowProperty {
31 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationConnection); 31 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(PresentationConnection);
32 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PresentationConnection); 32 USING_GARBAGE_COLLECTED_MIXIN(PresentationConnection);
33 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
34 public: 34 public:
35 // For CallbackPromiseAdapter. 35 // For CallbackPromiseAdapter.
36 using WebType = OwnPtr<WebPresentationConnectionClient>; 36 using WebType = OwnPtr<WebPresentationConnectionClient>;
37 37
38 static PresentationConnection* take(ScriptPromiseResolver*, PassOwnPtr<WebPr esentationConnectionClient>, PresentationRequest*); 38 static PresentationConnection* take(ScriptPromiseResolver*, PassOwnPtr<WebPr esentationConnectionClient>, PresentationRequest*);
39 static PresentationConnection* take(PresentationController*, PassOwnPtr<WebP resentationConnectionClient>, PresentationRequest*); 39 static PresentationConnection* take(PresentationController*, PassOwnPtr<WebP resentationConnectionClient>, PresentationRequest*);
40 ~PresentationConnection() override; 40 ~PresentationConnection() override;
41 41
42 // EventTarget implementation. 42 // EventTarget implementation.
(...skipping 23 matching lines...) Expand all
66 66
67 // Notifies the connection about its state change. 67 // Notifies the connection about its state change.
68 void didChangeState(WebPresentationConnectionState); 68 void didChangeState(WebPresentationConnectionState);
69 69
70 // Notifies the presentation about new message. 70 // Notifies the presentation about new message.
71 void didReceiveTextMessage(const String& message); 71 void didReceiveTextMessage(const String& message);
72 void didReceiveBinaryMessage(const uint8_t* data, size_t length); 72 void didReceiveBinaryMessage(const uint8_t* data, size_t length);
73 73
74 protected: 74 protected:
75 // EventTarget implementation. 75 // EventTarget implementation.
76 bool addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillB eRawPtr<EventListener>, const EventListenerOptions&) override; 76 bool addEventListenerInternal(const AtomicString& eventType, RawPtr<EventLis tener>, const EventListenerOptions&) override;
77 77
78 private: 78 private:
79 class BlobLoader; 79 class BlobLoader;
80 80
81 enum MessageType { 81 enum MessageType {
82 MessageTypeText, 82 MessageTypeText,
83 MessageTypeArrayBuffer, 83 MessageTypeArrayBuffer,
84 MessageTypeBlob, 84 MessageTypeBlob,
85 }; 85 };
86 86
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // For Blob data handling. 127 // For Blob data handling.
128 Member<BlobLoader> m_blobLoader; 128 Member<BlobLoader> m_blobLoader;
129 Deque<OwnPtr<Message>> m_messages; 129 Deque<OwnPtr<Message>> m_messages;
130 130
131 BinaryType m_binaryType; 131 BinaryType m_binaryType;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // PresentationConnection_h 136 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698