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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE
6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE
7
8 #include "content/browser/media/session/media_session_observer.h"
9 #include "ppapi/c/pp_instance.h"
10
11 namespace content {
12 class PepperWebContentsObserver;
13
14 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/.
15 public:
16 explicit PepperPlayerDelegate(
17 PepperWebContentsObserver* pepper_web_contents_observer,
18 PP_Instance pp_instance);
19 ~PepperPlayerDelegate() override;
20
21 void OnSuspend(int player_id) override;
22 void OnResume(int player_id) override;
23 void OnSetVolumeMultiplier(int player_id,
24 double volume_multiplier) override;
25
26 void OnSetVolume(int player_id, double volume);
27
28 private:
29 PepperWebContentsObserver* pepper_web_contents_observer_;
30 PP_Instance pp_instance_;
31 };
32 }
33
34 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLAYER_DELEGATE
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698