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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/presentation.mojom

Issue 2714693002: [Presentation API] Use connection proxy to change connection state to 'closed' (Closed)
Patch Set: Created 3 years, 10 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 // TODO(crbug.com/647290): Rename "Session" to "Connection" 5 // TODO(crbug.com/647290): Rename "Session" to "Connection"
6 6
7 module blink.mojom; 7 module blink.mojom;
8 8
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 interface PresentationConnection { 57 interface PresentationConnection {
58 // TODO(zhaobin): migrate SendConnectionMessage from PresentationService => 58 // TODO(zhaobin): migrate SendConnectionMessage from PresentationService =>
59 // PresentationConnection.Send(). http://crbug.com/658474 59 // PresentationConnection.Send(). http://crbug.com/658474
60 60
61 // Called when a message is sent by the target connection. 61 // Called when a message is sent by the target connection.
62 OnMessage(ConnectionMessage message) => (bool success); 62 OnMessage(ConnectionMessage message) => (bool success);
63 63
64 // Called when target connection notifies connection state change. 64 // Called when target connection notifies connection state change.
65 DidChangeState(PresentationConnectionState state); 65 DidChangeState(PresentationConnectionState state);
66
67 // Called when target connection calls close().
68 OnClose();
66 }; 69 };
67 70
68 interface PresentationService { 71 interface PresentationService {
69 // Sets the PresentationServiceClient. 72 // Sets the PresentationServiceClient.
70 SetClient(PresentationServiceClient client); 73 SetClient(PresentationServiceClient client);
71 74
72 ///////////// Functions here are for the controller part of the API. ///////// 75 ///////////// Functions here are for the controller part of the API. /////////
73 76
74 // Called when the frame sets or changes the default presentation URLs. 77 // Called when the frame sets or changes the default presentation URLs.
75 // When the default presentation is started on this frame, 78 // When the default presentation is started on this frame,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo, 175 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo,
173 array<ConnectionMessage> messages); 176 array<ConnectionMessage> messages);
174 177
175 // Called on a presentation receiver when presentation connection is available 178 // Called on a presentation receiver when presentation connection is available
176 // from the controlling page. 179 // from the controlling page.
177 OnReceiverConnectionAvailable( 180 OnReceiverConnectionAvailable(
178 PresentationSessionInfo sessionInfo, 181 PresentationSessionInfo sessionInfo,
179 PresentationConnection controller_connection_ptr, 182 PresentationConnection controller_connection_ptr,
180 PresentationConnection& receiver_connection_request); 183 PresentationConnection& receiver_connection_request);
181 }; 184 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698