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

Unified Diff: media/mojo/clients/mojo_renderer.h

Issue 2282633002: Integrate Surface requests with MediaPlayerRenderer (Closed)
Patch Set: Switch token type to base::Nonce Created 4 years, 3 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
Index: media/mojo/clients/mojo_renderer.h
diff --git a/media/mojo/clients/mojo_renderer.h b/media/mojo/clients/mojo_renderer.h
index 42c506d4d8978a2e74aff49417cd21615d102d39..c8f7c618a46807126fe4cd4fde39f7709b546e50 100644
--- a/media/mojo/clients/mojo_renderer.h
+++ b/media/mojo/clients/mojo_renderer.h
@@ -8,6 +8,7 @@
#include <stdint.h>
#include "base/macros.h"
+#include "base/nonce.h"
#include "media/base/demuxer_stream.h"
#include "media/base/renderer.h"
#include "media/mojo/interfaces/renderer.mojom.h"
@@ -56,6 +57,14 @@ class MojoRenderer : public Renderer, public mojom::RendererClient {
bool HasAudio() override;
bool HasVideo() override;
+ using ReceiveSurfaceRequestTokenCB =
+ base::Callback<void(bool, const base::Nonce&)>;
+
+ // Asks |remote_renderer_| to register a request in the browser's
+ // ScopedSurfaceRequestManager, and returns the request's token.
+ void InitiateScopedSurfaceRequest(
+ ReceiveSurfaceRequestTokenCB receive_request_token_cb);
+
private:
// mojom::RendererClient implementation, dispatched on the
// |task_runner_|.

Powered by Google App Engine
This is Rietveld 408576698