Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |