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

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

Issue 2416853005: Fixing naming issues in MediaSession (Closed)
Patch Set: addressed nits Created 4 years, 2 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "content/browser/media/session/media_session_observer.h" 9 #include "content/browser/media/session/media_session_player_observer.h"
10 #include "content/browser/web_contents/web_contents_impl.h" 10 #include "content/browser/web_contents/web_contents_impl.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class PepperWebContentsObserver; 14 class PepperWebContentsObserver;
15 15
16 class PepperPlayerDelegate : public MediaSessionObserver { 16 class PepperPlayerDelegate : public MediaSessionPlayerObserver {
17 public: 17 public:
18 // The Id can only be 0 for PepperPlayerDelegate. Declare the constant here so 18 // The Id can only be 0 for PepperPlayerDelegate. Declare the constant here so
19 // it can be used elsewhere. 19 // it can be used elsewhere.
20 static const int kPlayerId; 20 static const int kPlayerId;
21 21
22 PepperPlayerDelegate( 22 PepperPlayerDelegate(
23 WebContentsImpl* contents, int32_t pp_instance); 23 WebContentsImpl* contents, int32_t pp_instance);
24 ~PepperPlayerDelegate() override; 24 ~PepperPlayerDelegate() override;
25 25
26 // MediaSessionObserver 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 31
32 private: 32 private:
33 void SetVolume(int player_id, double volume); 33 void SetVolume(int player_id, double volume);
34 34
35 WebContentsImpl* contents_; 35 WebContentsImpl* contents_;
36 int32_t pp_instance_; 36 int32_t pp_instance_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(PepperPlayerDelegate); 38 DISALLOW_COPY_AND_ASSIGN(PepperPlayerDelegate);
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_ 43 #endif // CONTENT_BROWSER_MEDIA_SESSION_PEPPER_PLAYER_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/media/session/mock_media_session_player_observer.cc ('k') | content/public/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698