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

Side by Side Diff: content/browser/presentation/presentation_service_impl.h

Issue 1466573002: Presentation API: implement renderer side of PresentationConnection.close(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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_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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 CloseSession(
167 const mojo::String& presentation_url, 167 const mojo::String& presentation_url,
168 const mojo::String& presentation_id) override; 168 const mojo::String& presentation_id) override;
169 void TerminateSession(
170 const mojo::String& presentation_url,
171 const mojo::String& presentation_id) override;
169 void ListenForSessionMessages( 172 void ListenForSessionMessages(
170 presentation::PresentationSessionInfoPtr session) override; 173 presentation::PresentationSessionInfoPtr session) override;
171 174
172 // Creates a binding between this object and |request|. 175 // Creates a binding between this object and |request|.
173 void Bind(mojo::InterfaceRequest<presentation::PresentationService> request); 176 void Bind(mojo::InterfaceRequest<presentation::PresentationService> request);
174 177
175 // WebContentsObserver override. 178 // WebContentsObserver override.
176 void DidNavigateAnyFrame( 179 void DidNavigateAnyFrame(
177 content::RenderFrameHost* render_frame_host, 180 content::RenderFrameHost* render_frame_host,
178 const content::LoadCommittedDetails& details, 181 const content::LoadCommittedDetails& details,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 284
282 // NOTE: Weak pointers must be invalidated before all other member variables. 285 // NOTE: Weak pointers must be invalidated before all other member variables.
283 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_; 286 base::WeakPtrFactory<PresentationServiceImpl> weak_factory_;
284 287
285 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl); 288 DISALLOW_COPY_AND_ASSIGN(PresentationServiceImpl);
286 }; 289 };
287 290
288 } // namespace content 291 } // namespace content
289 292
290 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_ 293 #endif // CONTENT_BROWSER_PRESENTATION_PRESENTATION_SERVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698