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

Side by Side Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 1084293004: [PresentationAPI] Added on-session-message handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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 CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 6 #define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/presentation/presentation_service.mojom.h" 10 #include "content/common/presentation/presentation_service.mojom.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bool available); 51 bool available);
52 void OnSessionCreated( 52 void OnSessionCreated(
53 blink::WebPresentationSessionClientCallbacks* callback, 53 blink::WebPresentationSessionClientCallbacks* callback,
54 presentation::PresentationSessionInfoPtr session_info, 54 presentation::PresentationSessionInfoPtr session_info,
55 presentation::PresentationErrorPtr error); 55 presentation::PresentationErrorPtr error);
56 void OnDefaultSessionStarted( 56 void OnDefaultSessionStarted(
57 presentation::PresentationSessionInfoPtr session_info); 57 presentation::PresentationSessionInfoPtr session_info);
58 void OnSessionStateChange( 58 void OnSessionStateChange(
59 presentation::PresentationSessionInfoPtr session_info, 59 presentation::PresentationSessionInfoPtr session_info,
60 presentation::PresentationSessionState session_state); 60 presentation::PresentationSessionState session_state);
61 void OnSessionMessagesReceived(
62 mojo::Array<presentation::SessionMessagePtr> messages);
61 63
62 void ConnectToPresentationServiceIfNeeded(); 64 void ConnectToPresentationServiceIfNeeded();
63 65
64 void DoUpdateAvailableChangeWatched( 66 void DoUpdateAvailableChangeWatched(
65 const std::string& presentation_url, 67 const std::string& presentation_url,
66 bool watched); 68 bool watched);
67 69
68 // Used as a weak reference. Can be null since lifetime is bound to the frame. 70 // Used as a weak reference. Can be null since lifetime is bound to the frame.
69 blink::WebPresentationController* controller_; 71 blink::WebPresentationController* controller_;
70 presentation::PresentationServicePtr presentation_service_; 72 presentation::PresentationServicePtr presentation_service_;
71 }; 73 };
72 74
73 } // namespace content 75 } // namespace content
74 76
75 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 77 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698