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

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

Issue 2477573002: [Presentation API] (3rd) (1-UA) Split PresentationServiceDelegateImpl(PSDImpl) (Closed)
Patch Set: fix windows compile error Created 3 years, 11 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 blink::mojom::PresentationSessionInfoPtr session_info, 139 blink::mojom::PresentationSessionInfoPtr session_info,
140 std::vector<blink::mojom::ConnectionMessagePtr> messages) override; 140 std::vector<blink::mojom::ConnectionMessagePtr> messages) override;
141 void OnDefaultSessionStarted( 141 void OnDefaultSessionStarted(
142 blink::mojom::PresentationSessionInfoPtr session_info) override; 142 blink::mojom::PresentationSessionInfoPtr session_info) override;
143 143
144 void OnSessionCreated( 144 void OnSessionCreated(
145 std::unique_ptr<blink::WebPresentationConnectionCallback> callback, 145 std::unique_ptr<blink::WebPresentationConnectionCallback> callback,
146 blink::mojom::PresentationSessionInfoPtr session_info, 146 blink::mojom::PresentationSessionInfoPtr session_info,
147 blink::mojom::PresentationErrorPtr error); 147 blink::mojom::PresentationErrorPtr error);
148 void OnReceiverConnectionAvailable( 148 void OnReceiverConnectionAvailable(
149 blink::mojom::PresentationSessionInfoPtr) override; 149 blink::mojom::PresentationSessionInfoPtr,
150 blink::mojom::PresentationConnectionPtr,
151 blink::mojom::PresentationConnectionRequest) override;
150 152
151 // Call to PresentationService to send the message in |request|. 153 // Call to PresentationService to send the message in |request|.
152 // |session_info| and |message| of |reuqest| will be consumed. 154 // |session_info| and |message| of |reuqest| will be consumed.
153 // |HandleSendMessageRequests| will be invoked after the send is attempted. 155 // |HandleSendMessageRequests| will be invoked after the send is attempted.
154 void DoSendMessage(SendMessageRequest* request); 156 void DoSendMessage(SendMessageRequest* request);
155 void HandleSendMessageRequests(bool success); 157 void HandleSendMessageRequests(bool success);
156 158
157 virtual void ConnectToPresentationServiceIfNeeded(); 159 virtual void ConnectToPresentationServiceIfNeeded();
158 160
159 void UpdateListeningState(); 161 void UpdateListeningState();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // Updates the listening state of availability for |status| and notifies the 201 // Updates the listening state of availability for |status| and notifies the
200 // client. 202 // client.
201 void UpdateListeningState(AvailabilityStatus* status); 203 void UpdateListeningState(AvailabilityStatus* status);
202 204
203 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); 205 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
204 }; 206 };
205 207
206 } // namespace content 208 } // namespace content
207 209
208 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 210 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/browser/presentation_service_delegate.h ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698