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

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

Issue 2874483002: [Presentation API] Remove closed connections from PresentationConnectionList (Closed)
Patch Set: rebase with master Created 3 years, 7 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 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 "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static PresentationReceiver* From(Document&); 45 static PresentationReceiver* From(Document&);
46 46
47 // PresentationReceiver.idl implementation 47 // PresentationReceiver.idl implementation
48 ScriptPromise connectionList(ScriptState*); 48 ScriptPromise connectionList(ScriptState*);
49 49
50 // Implementation of WebPresentationController. 50 // Implementation of WebPresentationController.
51 WebPresentationConnection* OnReceiverConnectionAvailable( 51 WebPresentationConnection* OnReceiverConnectionAvailable(
52 const WebPresentationInfo&) override; 52 const WebPresentationInfo&) override;
53 void DidChangeConnectionState(WebPresentationConnectionState) override; 53 void DidChangeConnectionState(WebPresentationConnectionState) override;
54 void TerminateConnection() override; 54 void TerminateConnection() override;
55 void RemoveConnection(WebPresentationConnection*) override;
55 56
56 void RegisterConnection(PresentationConnection*); 57 void RegisterConnection(PresentationConnection*);
57 58
58 DECLARE_VIRTUAL_TRACE(); 59 DECLARE_VIRTUAL_TRACE();
59 60
60 private: 61 private:
61 friend class PresentationReceiverTest; 62 friend class PresentationReceiverTest;
62 63
63 void RecordOriginTypeAccess(Document*) const; 64 void RecordOriginTypeAccess(Document*) const;
64 65
65 Member<ConnectionListProperty> connection_list_property_; 66 Member<ConnectionListProperty> connection_list_property_;
66 Member<PresentationConnectionList> connection_list_; 67 Member<PresentationConnectionList> connection_list_;
67 }; 68 };
68 69
69 } // namespace blink 70 } // namespace blink
70 71
71 #endif // PresentationReceiver_h 72 #endif // PresentationReceiver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698