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

Side by Side Diff: content/browser/media/session/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: modified when to add/remove player to/from MediaSession Created 4 years, 5 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_BROWSER_MEDIA_SESSION_PEPPER_PEPPER_PLAYER_DELEGATE_H_
6 #define CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PEPPER_PLAYER_DELEGATE_H_
mlamouri (slow - plz ping) 2016/06/24 15:33:32 No need to create a pepper/ directory.
Zhiqiang Zhang (Slow) 2016/06/24 17:43:21 Done.
7
8 #include "content/browser/media/session/media_session_observer.h"
9 #include "ppapi/c/pp_instance.h"
10
11 namespace content {
12
13 class PepperWebContentsObserver;
14
15 class PepperPlayerDelegate : public MediaSessionObserver {
16 public:
17 explicit PepperPlayerDelegate(
mlamouri (slow - plz ping) 2016/06/24 15:33:32 You shouldn't have explicit here: you have two par
Zhiqiang Zhang (Slow) 2016/06/24 17:43:21 Done.
18 PepperWebContentsObserver* pepper_web_contents_observer,
19 PP_Instance pp_instance);
20 ~PepperPlayerDelegate() override;
21
22 void OnSuspend(int player_id) override;
23 void OnResume(int player_id) override;
24 void OnSetVolumeMultiplier(int player_id,
25 double volume_multiplier) override;
26
27 void OnSetVolume(int player_id, double volume);
28
29 private:
30 PepperWebContentsObserver* pepper_web_contents_observer_;
31 PP_Instance pp_instance_;
32 };
33
34 } // namespace content
35
36 #endif // CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PEPPER_PLAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698