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

Side by Side Diff: Source/modules/presentation/PresentationController.h

Issue 1206513004: [PresentationAPI] on-session-message handler for binary messages (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Revert "add typedef uint8_t for WIN32" Created 5 years, 5 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 PresentationController_h 5 #ifndef PresentationController_h
6 #define PresentationController_h 6 #define PresentationController_h
7 7
8 #include "core/frame/LocalFrameLifecycleObserver.h" 8 #include "core/frame/LocalFrameLifecycleObserver.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "modules/presentation/Presentation.h" 10 #include "modules/presentation/Presentation.h"
(...skipping 30 matching lines...) Expand all
41 41
42 WebPresentationClient* client(); 42 WebPresentationClient* client();
43 43
44 // Implementation of HeapSupplement. 44 // Implementation of HeapSupplement.
45 DECLARE_VIRTUAL_TRACE(); 45 DECLARE_VIRTUAL_TRACE();
46 46
47 // Implementation of WebPresentationController. 47 // Implementation of WebPresentationController.
48 virtual void didStartDefaultSession(WebPresentationSessionClient*) override; 48 virtual void didStartDefaultSession(WebPresentationSessionClient*) override;
49 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) override; 49 virtual void didChangeSessionState(WebPresentationSessionClient*, WebPresent ationSessionState) override;
50 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con st WebString&) override; 50 virtual void didReceiveSessionTextMessage(WebPresentationSessionClient*, con st WebString&) override;
51 virtual void didReceiveSessionBinaryMessage(WebPresentationSessionClient*, c onst uint8_t* data, size_t length) override;
51 52
52 // Connects the |Presentation| object with this controller. 53 // Connects the |Presentation| object with this controller.
53 void setPresentation(Presentation*); 54 void setPresentation(Presentation*);
54 55
55 private: 56 private:
56 PresentationController(LocalFrame&, WebPresentationClient*); 57 PresentationController(LocalFrame&, WebPresentationClient*);
57 58
58 // Implementation of LocalFrameLifecycleObserver. 59 // Implementation of LocalFrameLifecycleObserver.
59 virtual void willDetachFrameHost() override; 60 virtual void willDetachFrameHost() override;
60 61
61 WebPresentationClient* m_client; 62 WebPresentationClient* m_client;
62 PersistentWillBeMember<Presentation> m_presentation; 63 PersistentWillBeMember<Presentation> m_presentation;
63 }; 64 };
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif // PresentationController_h 68 #endif // PresentationController_h
OLDNEW
« no previous file with comments | « Source/modules/presentation/Presentation.cpp ('k') | Source/modules/presentation/PresentationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698