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

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

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: rebase Created 3 years, 9 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // Notifies the connection about its state change to 'closed'. 84 // Notifies the connection about its state change to 'closed'.
85 void didClose(WebPresentationConnectionCloseReason, const String& message); 85 void didClose(WebPresentationConnectionCloseReason, const String& message);
86 86
87 // WebPresentationConnection implementation. 87 // WebPresentationConnection implementation.
88 void bindProxy(std::unique_ptr<WebPresentationConnectionProxy>) override; 88 void bindProxy(std::unique_ptr<WebPresentationConnectionProxy>) override;
89 void didReceiveTextMessage(const WebString& message) override; 89 void didReceiveTextMessage(const WebString& message) override;
90 void didReceiveBinaryMessage(const uint8_t* data, size_t length) override; 90 void didReceiveBinaryMessage(const uint8_t* data, size_t length) override;
91 void didChangeState(WebPresentationConnectionState) override; 91 void didChangeState(WebPresentationConnectionState) override;
92 92
93 WebPresentationConnectionState getState(); 93 WebPresentationConnectionState getState();
94 void didChangeState(WebPresentationConnectionState, bool shouldDispatchEvent);
94 95
95 protected: 96 protected:
96 // EventTarget implementation. 97 // EventTarget implementation.
97 void addedEventListener(const AtomicString& eventType, 98 void addedEventListener(const AtomicString& eventType,
98 RegisteredEventListener&) override; 99 RegisteredEventListener&) override;
99 100
100 private: 101 private:
101 class BlobLoader; 102 class BlobLoader;
102 103
103 enum MessageType { 104 enum MessageType {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 HeapDeque<Member<Message>> m_messages; 136 HeapDeque<Member<Message>> m_messages;
136 137
137 BinaryType m_binaryType; 138 BinaryType m_binaryType;
138 139
139 std::unique_ptr<WebPresentationConnectionProxy> m_proxy; 140 std::unique_ptr<WebPresentationConnectionProxy> m_proxy;
140 }; 141 };
141 142
142 } // namespace blink 143 } // namespace blink
143 144
144 #endif // PresentationConnection_h 145 #endif // PresentationConnection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698