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

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: 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(bool available); 51 void OnScreenAvailabilityChanged(bool available);
49 void OnSessionCreated( 52 void OnSessionCreated(
50 blink::WebPresentationSessionClientCallbacks* callback, 53 blink::WebPresentationSessionClientCallbacks* callback,
51 presentation::PresentationSessionInfoPtr session_info, 54 presentation::PresentationSessionInfoPtr session_info,
52 presentation::PresentationErrorPtr error); 55 presentation::PresentationErrorPtr error);
53 void OnDefaultSessionStarted( 56 void OnDefaultSessionStarted(
(...skipping 10 matching lines...) Expand all
64 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is 67 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is
65 // needed. 68 // needed.
66 using PresentationSessionDispatchers = 69 using PresentationSessionDispatchers =
67 ScopedVector<PresentationSessionDispatcher>; 70 ScopedVector<PresentationSessionDispatcher>;
68 PresentationSessionDispatchers presentation_session_dispatchers_; 71 PresentationSessionDispatchers presentation_session_dispatchers_;
69 }; 72 };
70 73
71 } // namespace content 74 } // namespace content
72 75
73 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 76 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698