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

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 0099a0f2a048bff297efaa9724fe1d9a3096199b..fb6b4d9a83b02147194dd362b33dc6e1ef65fec0 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -6,11 +6,9 @@
#define CONTENT_RENDERER_PRESENTATION_PRESENTATION_DISPATCHER_H_
#include "base/compiler_specific.h"
-#include "base/memory/scoped_vector.h"
#include "content/common/content_export.h"
#include "content/common/presentation/presentation_service.mojom.h"
#include "content/public/renderer/render_frame_observer.h"
-#include "content/renderer/presentation/presentation_session_dispatcher.h"
#include "third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h"
namespace blink {
@@ -57,6 +55,9 @@ class CONTENT_EXPORT PresentationDispatcher
presentation::PresentationErrorPtr error);
void OnDefaultSessionStarted(
presentation::PresentationSessionInfoPtr session_info);
+ void OnSessionStateChange(
+ presentation::PresentationSessionInfoPtr session_info,
+ presentation::PresentationSessionState session_state);
void ConnectToPresentationServiceIfNeeded();
@@ -67,14 +68,6 @@ class CONTENT_EXPORT PresentationDispatcher
// Used as a weak reference. Can be null since lifetime is bound to the frame.
blink::WebPresentationController* controller_;
presentation::PresentationServicePtr presentation_service_;
-
- // Wrappers around the PresentationSessionPtr corresponding to each Javascript
- // PresentationSession object passed back to the frame.
- // TODO(avayvod): Switch to base::IDMap when the lookup by presentation id is
- // needed.
- using PresentationSessionDispatchers =
- ScopedVector<PresentationSessionDispatcher>;
- PresentationSessionDispatchers presentation_session_dispatchers_;
};
} // namespace content
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/presentation/presentation_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698