Chromium Code Reviews| 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 |