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

Unified Diff: content/browser/media/pepper/pepper_player_delegate.h

Issue 2060933002: Let Flash join and be controlled by media session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pepper_to_contents
Patch Set: added TODO Created 4 years, 6 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: content/browser/media/pepper/pepper_player_delegate.h
diff --git a/content/browser/media/pepper/pepper_player_delegate.h b/content/browser/media/pepper/pepper_player_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..6a2594a6035731dc481a8bcaa514c9f1cd356742
--- /dev/null
+++ b/content/browser/media/pepper/pepper_player_delegate.h
@@ -0,0 +1,34 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE
+#define CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE
+
+#include "content/browser/media/session/media_session_observer.h"
+#include "ppapi/c/pp_instance.h"
+
+namespace content {
+class PepperWebContentsObserver;
+
+class PepperPlayerDelegate : public MediaSessionObserver {
Zhiqiang Zhang (Slow) 2016/06/13 17:40:19 Do you prefer to put "pepper/*" into "content/brow
mlamouri (slow - plz ping) 2016/06/23 13:23:20 I guess this could be in media/session/.
+ public:
+ explicit PepperPlayerDelegate(
+ PepperWebContentsObserver* pepper_web_contents_observer,
+ PP_Instance pp_instance);
+ ~PepperPlayerDelegate() override;
+
+ void OnSuspend(int player_id) override;
+ void OnResume(int player_id) override;
+ void OnSetVolumeMultiplier(int player_id,
+ double volume_multiplier) override;
+
+ void OnSetVolume(int player_id, double volume);
+
+ private:
+ PepperWebContentsObserver* pepper_web_contents_observer_;
+ PP_Instance pp_instance_;
+};
+}
+
+#endif // CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE

Powered by Google App Engine
This is Rietveld 408576698