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

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

Issue 979413002: [Presentation API] Additional plumbing for PresentationServiceImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@REAL-NEW-MASTER
Patch Set: rm presentation_session.mojom 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 27 matching lines...) Expand all
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 44
45 // RenderFrameObserver 45 // RenderFrameObserver
46 void DidChangeDefaultPresentation() override; 46 void DidChangeDefaultPresentation() override;
47 47
48 void OnScreenAvailabilityChanged(bool available); 48 void OnScreenAvailabilityChanged(
49 const std::string& presentation_url,
50 bool available);
49 void OnSessionCreated( 51 void OnSessionCreated(
50 blink::WebPresentationSessionClientCallbacks* callback, 52 blink::WebPresentationSessionClientCallbacks* callback,
51 presentation::PresentationSessionInfoPtr session_info, 53 presentation::PresentationSessionInfoPtr session_info,
52 presentation::PresentationErrorPtr error); 54 presentation::PresentationErrorPtr error);
53 void OnDefaultSessionStarted( 55 void OnDefaultSessionStarted(
54 presentation::PresentationSessionInfoPtr session_info); 56 presentation::PresentationSessionInfoPtr session_info);
55 57
56 void ConnectToPresentationServiceIfNeeded(); 58 void ConnectToPresentationServiceIfNeeded();
57 59
60 void DoUpdateAvailableChangeWatched(
61 const std::string& presentation_url,
62 bool watched);
63
58 // Used as a weak reference. Can be null since lifetime is bound to the frame. 64 // Used as a weak reference. Can be null since lifetime is bound to the frame.
59 blink::WebPresentationController* controller_; 65 blink::WebPresentationController* controller_;
60 presentation::PresentationServicePtr presentation_service_; 66 presentation::PresentationServicePtr presentation_service_;
61 67
62 // Wrappers around the PresentationSessionPtr corresponding to each Javascript 68 // Wrappers around the PresentationSessionPtr corresponding to each Javascript
63 // PresentationSession object passed back to the frame. 69 // PresentationSession object passed back to the frame.
64 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is 70 // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is
65 // needed. 71 // needed.
66 using PresentationSessionDispatchers = 72 using PresentationSessionDispatchers =
67 ScopedVector<PresentationSessionDispatcher>; 73 ScopedVector<PresentationSessionDispatcher>;
68 PresentationSessionDispatchers presentation_session_dispatchers_; 74 PresentationSessionDispatchers presentation_session_dispatchers_;
69 }; 75 };
70 76
71 } // namespace content 77 } // namespace content
72 78
73 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_ 79 #endif // CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/browser/presentation_session.cc ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698