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

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

Issue 999003004: Implementing closeSession from WebPresentationClient to PresentationService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After merge Created 5 years, 9 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 "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 blink::WebPresentationController* controller); 34 blink::WebPresentationController* controller);
35 virtual void updateAvailableChangeWatched(bool watched); 35 virtual void updateAvailableChangeWatched(bool watched);
36 virtual void startSession( 36 virtual void startSession(
37 const blink::WebString& presentationUrl, 37 const blink::WebString& presentationUrl,
38 const blink::WebString& presentationId, 38 const blink::WebString& presentationId,
39 blink::WebPresentationSessionClientCallbacks* callback); 39 blink::WebPresentationSessionClientCallbacks* callback);
40 virtual void joinSession( 40 virtual void joinSession(
41 const blink::WebString& presentationUrl, 41 const blink::WebString& presentationUrl,
42 const blink::WebString& presentationId, 42 const blink::WebString& presentationId,
43 blink::WebPresentationSessionClientCallbacks* callback); 43 blink::WebPresentationSessionClientCallbacks* callback);
44 virtual void closeSession(
45 const blink::WebString& presentationUrl,
46 const blink::WebString& presentationId);
44 47
45 // RenderFrameObserver 48 // RenderFrameObserver
46 void DidChangeDefaultPresentation() override; 49 void DidChangeDefaultPresentation() override;
47 50
48 void OnScreenAvailabilityChanged( 51 void OnScreenAvailabilityChanged(
49 const std::string& presentation_url, 52 const std::string& presentation_url,
50 bool available); 53 bool available);
51 void OnSessionCreated( 54 void OnSessionCreated(
52 blink::WebPresentationSessionClientCallbacks* callback, 55 blink::WebPresentationSessionClientCallbacks* callback,
53 presentation::PresentationSessionInfoPtr session_info, 56 presentation::PresentationSessionInfoPtr session_info,
(...skipping 16 matching lines...) Expand all
70 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is 73 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is
71 // needed. 74 // needed.
72 using PresentationSessionDispatchers = 75 using PresentationSessionDispatchers =
73 ScopedVector<PresentationSessionDispatcher>; 76 ScopedVector<PresentationSessionDispatcher>;
74 PresentationSessionDispatchers presentation_session_dispatchers_; 77 PresentationSessionDispatchers presentation_session_dispatchers_;
75 }; 78 };
76 79
77 } // namespace content 80 } // namespace content
78 81
79 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 82 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/common/presentation/presentation_service.mojom ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698