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

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

Issue 2197053002: Reland of [Presentation API] Convert presentation.mojom to new wrapper types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void stopListening(blink::WebPresentationAvailabilityObserver*) override; 90 void stopListening(blink::WebPresentationAvailabilityObserver*) override;
91 void setDefaultPresentationUrl(const blink::WebString& url) override; 91 void setDefaultPresentationUrl(const blink::WebString& url) override;
92 92
93 // RenderFrameObserver implementation. 93 // RenderFrameObserver implementation.
94 void DidCommitProvisionalLoad( 94 void DidCommitProvisionalLoad(
95 bool is_new_navigation, 95 bool is_new_navigation,
96 bool is_same_page_navigation) override; 96 bool is_same_page_navigation) override;
97 void OnDestruct() override; 97 void OnDestruct() override;
98 98
99 // blink::mojom::PresentationServiceClient 99 // blink::mojom::PresentationServiceClient
100 void OnScreenAvailabilityNotSupported(const mojo::String& url) override; 100 void OnScreenAvailabilityNotSupported(const std::string& url) override;
101 void OnScreenAvailabilityUpdated(const mojo::String& url, 101 void OnScreenAvailabilityUpdated(const std::string& url,
102 bool available) override; 102 bool available) override;
103 void OnConnectionStateChanged( 103 void OnConnectionStateChanged(
104 blink::mojom::PresentationSessionInfoPtr connection, 104 blink::mojom::PresentationSessionInfoPtr connection,
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 std::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 std::vector<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 115
116 void OnSessionCreated( 116 void OnSessionCreated(
117 blink::WebPresentationConnectionClientCallbacks* callback, 117 blink::WebPresentationConnectionClientCallbacks* callback,
118 blink::mojom::PresentationSessionInfoPtr session_info, 118 blink::mojom::PresentationSessionInfoPtr session_info,
119 blink::mojom::PresentationErrorPtr error); 119 blink::mojom::PresentationErrorPtr error);
120 120
121 // Call to PresentationService to send the message in |request|. 121 // Call to PresentationService to send the message in |request|.
122 // |session_info| and |message| of |reuqest| will be consumed. 122 // |session_info| and |message| of |reuqest| will be consumed.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Updates the listening state of availability for |status| and notifies the 167 // Updates the listening state of availability for |status| and notifies the
168 // client. 168 // client.
169 void UpdateListeningState(AvailabilityStatus* status); 169 void UpdateListeningState(AvailabilityStatus* status);
170 170
171 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher); 171 DISALLOW_COPY_AND_ASSIGN(PresentationDispatcher);
172 }; 172 };
173 173
174 } // namespace content 174 } // namespace content
175 175
176 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 176 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698