OLD | NEW |
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_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 void StartSession( | 156 void StartSession( |
157 const mojo::String& presentation_url, | 157 const mojo::String& presentation_url, |
158 const NewSessionMojoCallback& callback) override; | 158 const NewSessionMojoCallback& callback) override; |
159 void JoinSession( | 159 void JoinSession( |
160 const mojo::String& presentation_url, | 160 const mojo::String& presentation_url, |
161 const mojo::String& presentation_id, | 161 const mojo::String& presentation_id, |
162 const NewSessionMojoCallback& callback) override; | 162 const NewSessionMojoCallback& callback) override; |
163 void SendSessionMessage(presentation::PresentationSessionInfoPtr session_info, | 163 void SendSessionMessage(presentation::PresentationSessionInfoPtr session_info, |
164 presentation::SessionMessagePtr session_message, | 164 presentation::SessionMessagePtr session_message, |
165 const SendMessageMojoCallback& callback) override; | 165 const SendMessageMojoCallback& callback) override; |
166 void CloseSession( | 166 void CloseConnection(const mojo::String& presentation_url, |
167 const mojo::String& presentation_url, | 167 const mojo::String& presentation_id) override; |
168 const mojo::String& presentation_id) override; | 168 void Terminate(const mojo::String& presentation_url, |
169 void TerminateSession( | 169 const mojo::String& presentation_id) override; |
170 const mojo::String& presentation_url, | |
171 const mojo::String& presentation_id) override; | |
172 void ListenForSessionMessages( | 170 void ListenForSessionMessages( |
173 presentation::PresentationSessionInfoPtr session) override; | 171 presentation::PresentationSessionInfoPtr session) override; |
174 | 172 |
175 // Creates a binding between this object and |request|. | 173 // Creates a binding between this object and |request|. |
176 void Bind(mojo::InterfaceRequest<presentation::PresentationService> request); | 174 void Bind(mojo::InterfaceRequest<presentation::PresentationService> request); |
177 | 175 |
178 // WebContentsObserver override. | 176 // WebContentsObserver override. |
179 void DidNavigateAnyFrame( | 177 void DidNavigateAnyFrame( |
180 content::RenderFrameHost* render_frame_host, | 178 content::RenderFrameHost* render_frame_host, |
181 const content::LoadCommittedDetails& details, | 179 const content::LoadCommittedDetails& details, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 282 |
285 // NOTE: Weak pointers must be invalidated before all other member variables. | 283 // NOTE: Weak pointers must be invalidated before all other member variables. |
286 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; | 284 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; |
287 | 285 |
288 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); | 286 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); |
289 }; | 287 }; |
290 | 288 |
291 } // namespace content | 289 } // namespace content |
292 | 290 |
293 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ | 291 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ |
OLD | NEW |