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

Side by Side Diff: media/mojo/clients/mojo_renderer.h

Issue 2240213003: Update media mojom files to use TimeDelta instead of int64 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@OnDurationChanged_CL
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void StartPlayingFrom(base::TimeDelta time) override; 52 void StartPlayingFrom(base::TimeDelta time) override;
53 void SetPlaybackRate(double playback_rate) override; 53 void SetPlaybackRate(double playback_rate) override;
54 void SetVolume(float volume) override; 54 void SetVolume(float volume) override;
55 base::TimeDelta GetMediaTime() override; 55 base::TimeDelta GetMediaTime() override;
56 bool HasAudio() override; 56 bool HasAudio() override;
57 bool HasVideo() override; 57 bool HasVideo() override;
58 58
59 private: 59 private:
60 // mojom::RendererClient implementation, dispatched on the 60 // mojom::RendererClient implementation, dispatched on the
61 // |task_runner_|. 61 // |task_runner_|.
62 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; 62 void OnTimeUpdate(base::TimeDelta time, base::TimeDelta max_time) override;
63 void OnBufferingStateChange(mojom::BufferingState state) override; 63 void OnBufferingStateChange(mojom::BufferingState state) override;
64 void OnEnded() override; 64 void OnEnded() override;
65 void OnError() override; 65 void OnError() override;
66 void OnVideoNaturalSizeChange(const gfx::Size& size) override; 66 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
67 void OnVideoOpacityChange(bool opaque) override; 67 void OnVideoOpacityChange(bool opaque) override;
68 void OnWaitingForDecryptionKey() override; 68 void OnWaitingForDecryptionKey() override;
69 void OnStatisticsUpdate(const PipelineStatistics& stats) override; 69 void OnStatisticsUpdate(const PipelineStatistics& stats) override;
70 void OnDurationChange(int64_t duration_usec) override; 70 void OnDurationChange(base::TimeDelta duration) override;
71 71
72 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple 72 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple
73 // times. If an error occurs during connection, OnConnectionError will be 73 // times. If an error occurs during connection, OnConnectionError will be
74 // called asynchronously. 74 // called asynchronously.
75 void BindRemoteRendererIfNeeded(); 75 void BindRemoteRendererIfNeeded();
76 76
77 // Initialize the remote renderer when |demuxer_stream_provider| is of type 77 // Initialize the remote renderer when |demuxer_stream_provider| is of type
78 // DemuxerSteamProvider::Type::STREAM. 78 // DemuxerSteamProvider::Type::STREAM.
79 void InitializeRendererFromStreams(media::RendererClient* client); 79 void InitializeRendererFromStreams(media::RendererClient* client);
80 80
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Lock used to serialize access for |time_|. 143 // Lock used to serialize access for |time_|.
144 mutable base::Lock lock_; 144 mutable base::Lock lock_;
145 base::TimeDelta time_; 145 base::TimeDelta time_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 147 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
148 }; 148 };
149 149
150 } // namespace media 150 } // namespace media
151 151
152 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 152 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | media/mojo/clients/mojo_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698