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

Side by Side Diff: content/browser/media/session/pepper_player_delegate.h

Issue 2798083002: Record user interactions with MediaSession by action type (Closed)
Patch Set: addressed style nits Created 3 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_
6 #define CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_ 6 #define CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 static const int kPlayerId; 21 static const int kPlayerId;
22 22
23 PepperPlayerDelegate(RenderFrameHost* render_frame_host, int32_t pp_instance); 23 PepperPlayerDelegate(RenderFrameHost* render_frame_host, int32_t pp_instance);
24 ~PepperPlayerDelegate() override; 24 ~PepperPlayerDelegate() override;
25 25
26 // MediaSessionPlayerObserver implementation. 26 // MediaSessionPlayerObserver implementation.
27 void OnSuspend(int player_id) override; 27 void OnSuspend(int player_id) override;
28 void OnResume(int player_id) override; 28 void OnResume(int player_id) override;
29 void OnSetVolumeMultiplier(int player_id, 29 void OnSetVolumeMultiplier(int player_id,
30 double volume_multiplier) override; 30 double volume_multiplier) override;
31 RenderFrameHost* GetRenderFrameHost() const override; 31 RenderFrameHost* render_frame_host() const override;
32 32
33 private: 33 private:
34 void SetVolume(int player_id, double volume); 34 void SetVolume(int player_id, double volume);
35 35
36 RenderFrameHost* render_frame_host_; 36 RenderFrameHost* render_frame_host_;
37 int32_t pp_instance_; 37 int32_t pp_instance_;
38 38
39 DISALLOW_COPY_AND_ASSIGN(PepperPlayerDelegate); 39 DISALLOW_COPY_AND_ASSIGN(PepperPlayerDelegate);
40 }; 40 };
41 41
42 } // namespace content 42 } // namespace content
43 43
44 #endif // CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_ 44 #endif // CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698