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

Side by Side Diff: content/browser/media/android/media_player_renderer.h

Issue 2541803003: media: remove unused functions: Renderer::HasAudio()/HasVideo() (Closed)
Patch Set: cast Created 4 years 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_ANDROID_MEDIA_PLAYER_RENDERER_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_
6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ 6 #define CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void Flush(const base::Closure& flush_cb) override; 55 void Flush(const base::Closure& flush_cb) override;
56 void StartPlayingFrom(base::TimeDelta time) override; 56 void StartPlayingFrom(base::TimeDelta time) override;
57 57
58 // N.B: MediaPlayerBridge doesn't support variable playback rates (but it 58 // N.B: MediaPlayerBridge doesn't support variable playback rates (but it
59 // could be exposed from MediaPlayer in the future). For the moment: 59 // could be exposed from MediaPlayer in the future). For the moment:
60 // - If |playback_rate| is 0, we pause the video. 60 // - If |playback_rate| is 0, we pause the video.
61 // - For other |playback_rate| values, we start playing at 1x speed. 61 // - For other |playback_rate| values, we start playing at 1x speed.
62 void SetPlaybackRate(double playback_rate) override; 62 void SetPlaybackRate(double playback_rate) override;
63 void SetVolume(float volume) override; 63 void SetVolume(float volume) override;
64 base::TimeDelta GetMediaTime() override; 64 base::TimeDelta GetMediaTime() override;
65 bool HasAudio() override;
66 bool HasVideo() override;
67 65
68 // media::MediaPlayerManager implementation 66 // media::MediaPlayerManager implementation
69 media::MediaResourceGetter* GetMediaResourceGetter() override; 67 media::MediaResourceGetter* GetMediaResourceGetter() override;
70 media::MediaUrlInterceptor* GetMediaUrlInterceptor() override; 68 media::MediaUrlInterceptor* GetMediaUrlInterceptor() override;
71 void OnTimeUpdate(int player_id, 69 void OnTimeUpdate(int player_id,
72 base::TimeDelta current_timestamp, 70 base::TimeDelta current_timestamp,
73 base::TimeTicks current_time_ticks) override; 71 base::TimeTicks current_time_ticks) override;
74 void OnMediaMetadataChanged(int player_id, 72 void OnMediaMetadataChanged(int player_id,
75 base::TimeDelta duration, 73 base::TimeDelta duration,
76 int width, 74 int width,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 127
130 // NOTE: Weak pointers must be invalidated before all other member variables. 128 // NOTE: Weak pointers must be invalidated before all other member variables.
131 base::WeakPtrFactory<MediaPlayerRenderer> weak_factory_; 129 base::WeakPtrFactory<MediaPlayerRenderer> weak_factory_;
132 130
133 DISALLOW_COPY_AND_ASSIGN(MediaPlayerRenderer); 131 DISALLOW_COPY_AND_ASSIGN(MediaPlayerRenderer);
134 }; 132 };
135 133
136 } // namespace content 134 } // namespace content
137 135
138 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_ 136 #endif // CONTENT_BROWSER_MEDIA_ANDROID_MEDIA_PLAYER_RENDERER_H_
OLDNEW
« no previous file with comments | « chromecast/media/service/cast_renderer.cc ('k') | content/browser/media/android/media_player_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698