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

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

Issue 2355723004: [Presentation API] 1-UA: send message between controller and receiver page (Closed)
Patch Set: Merge with changes in Issue 2343013002 Created 4 years, 2 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 "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 26 matching lines...) Expand all
37 public: 37 public:
38 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*); 38 explicit PresentationReceiver(LocalFrame*, WebPresentationClient*);
39 ~PresentationReceiver() = default; 39 ~PresentationReceiver() = default;
40 40
41 // PresentationReceiver.idl implementation 41 // PresentationReceiver.idl implementation
42 ScriptPromise connectionList(ScriptState*); 42 ScriptPromise connectionList(ScriptState*);
43 43
44 // Implementation of WebPresentationController. 44 // Implementation of WebPresentationController.
45 void onReceiverConnectionAvailable(WebPresentationConnectionClient*) overrid e; 45 void onReceiverConnectionAvailable(WebPresentationConnectionClient*) overrid e;
46 void registerConnection(PresentationConnection*); 46 void registerConnection(PresentationConnection*);
47 void didReceiveSessionTextMessage(WebPresentationConnectionClient*, const We bString&) override;
48 void didReceiveSessionBinaryMessage(WebPresentationConnectionClient*, const uint8_t* data, size_t length) override;
47 49
48 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
49 51
50 private: 52 private:
51 friend class PresentationReceiverTest; 53 friend class PresentationReceiverTest;
52 54
53 Member<ConnectionListProperty> m_connectionListProperty; 55 Member<ConnectionListProperty> m_connectionListProperty;
54 Member<PresentationConnectionList> m_connectionList; 56 Member<PresentationConnectionList> m_connectionList;
55 }; 57 };
56 58
57 } // namespace blink 59 } // namespace blink
58 60
59 #endif // PresentationReceiver_h 61 #endif // PresentationReceiver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698