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

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

Issue 2484273003: [Presentation API] (1-UA) fire PresentationConnection onterminate event if receiver page gets destr… (Closed)
Patch Set: Created 4 years, 1 month 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PresentationReceiver_h 5 #ifndef PresentationReceiver_h
6 #define PresentationReceiver_h 6 #define PresentationReceiver_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseProperty.h" 9 #include "bindings/core/v8/ScriptPromiseProperty.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 27 matching lines...) Expand all
38 38
39 public: 39 public:
40 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*); 40 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
41 ~PresentationReceiver() = default; 41 ~PresentationReceiver() = default;
42 42
43 // PresentationReceiver.idl implementation 43 // PresentationReceiver.idl implementation
44 ScriptPromise connectionList(ScriptState*); 44 ScriptPromise connectionList(ScriptState*);
45 45
46 // Implementation of WebPresentationController. 46 // Implementation of WebPresentationController.
47 void onReceiverConnectionAvailable(WebPresentationConnectionClient*) override; 47 void onReceiverConnectionAvailable(WebPresentationConnectionClient*) override;
48 void didChangeSessionState(WebPresentationConnectionState) override;
49 void closeWindow() override;
50
48 void registerConnection(PresentationConnection*); 51 void registerConnection(PresentationConnection*);
49 52
50 DECLARE_VIRTUAL_TRACE(); 53 DECLARE_VIRTUAL_TRACE();
51 54
52 private: 55 private:
53 friend class PresentationReceiverTest; 56 friend class PresentationReceiverTest;
54 57
55 Member<ConnectionListProperty> m_connectionListProperty; 58 Member<ConnectionListProperty> m_connectionListProperty;
56 Member<PresentationConnectionList> m_connectionList; 59 Member<PresentationConnectionList> m_connectionList;
57 }; 60 };
58 61
59 } // namespace blink 62 } // namespace blink
60 63
61 #endif // PresentationReceiver_h 64 #endif // PresentationReceiver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698