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

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

Issue 1314413005: [Presentation API] 1-UA presentation support + presenter APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 blink::mojom::PresentationConnectionState state) override; 105 blink::mojom::PresentationConnectionState state) override;
106 void OnConnectionClosed( 106 void OnConnectionClosed(
107 blink::mojom::PresentationSessionInfoPtr connection, 107 blink::mojom::PresentationSessionInfoPtr connection,
108 blink::mojom::PresentationConnectionCloseReason reason, 108 blink::mojom::PresentationConnectionCloseReason reason,
109 const mojo::String& message) override; 109 const mojo::String& message) override;
110 void OnSessionMessagesReceived( 110 void OnSessionMessagesReceived(
111 blink::mojom::PresentationSessionInfoPtr session_info, 111 blink::mojom::PresentationSessionInfoPtr session_info,
112 mojo::Array<blink::mojom::SessionMessagePtr> messages) override; 112 mojo::Array<blink::mojom::SessionMessagePtr> messages) override;
113 void OnDefaultSessionStarted( 113 void OnDefaultSessionStarted(
114 blink::mojom::PresentationSessionInfoPtr session_info) override; 114 blink::mojom::PresentationSessionInfoPtr session_info) override;
115 void OnReceiverConnectionAvailable(
116 blink::mojom::PresentationSessionInfoPtr connection) override;
115 117
116 void OnSessionCreated( 118 void OnSessionCreated(
117 blink::WebPresentationConnectionClientCallbacks* callback, 119 blink::WebPresentationConnectionClientCallbacks* callback,
118 blink::mojom::PresentationSessionInfoPtr session_info, 120 blink::mojom::PresentationSessionInfoPtr session_info,
119 blink::mojom::PresentationErrorPtr error); 121 blink::mojom::PresentationErrorPtr error);
120 122
121 // Call to PresentationService to send the message in |request|. 123 // Call to PresentationService to send the message in |request|.
122 // |session_info| and |message| of |reuqest| will be consumed. 124 // |session_info| and |message| of |reuqest| will be consumed.
123 // |HandleSendMessageRequests| will be invoked after the send is attempted. 125 // |HandleSendMessageRequests| will be invoked after the send is attempted.
124 void DoSendMessage(SendMessageRequest* request); 126 void DoSendMessage(SendMessageRequest* request);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Updates the listening state of availability for |status| and notifies the 169 // Updates the listening state of availability for |status| and notifies the
168 // client. 170 // client.
169 void UpdateListeningState(AvailabilityStatus* status); 171 void UpdateListeningState(AvailabilityStatus* status);
170 172
171 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); 173 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
172 }; 174 };
173 175
174 } // namespace content 176 } // namespace content
175 177
176 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 178 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/browser/presentation_session.h ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698