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

Side by Side Diff: media/mojo/services/mojo_renderer_service.h

Issue 2243683002: Add OnDurationChange() to RenderClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@media_player_simplified
Patch Set: Fixed typo 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
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_SERVICES_MOJO_RENDERER_SERVICE_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 }; 65 };
66 66
67 // RendererClient implementation. 67 // RendererClient implementation.
68 void OnError(PipelineStatus status) final; 68 void OnError(PipelineStatus status) final;
69 void OnEnded() final; 69 void OnEnded() final;
70 void OnStatisticsUpdate(const PipelineStatistics& stats) final; 70 void OnStatisticsUpdate(const PipelineStatistics& stats) final;
71 void OnBufferingStateChange(BufferingState state) final; 71 void OnBufferingStateChange(BufferingState state) final;
72 void OnWaitingForDecryptionKey() final; 72 void OnWaitingForDecryptionKey() final;
73 void OnVideoNaturalSizeChange(const gfx::Size& size) final; 73 void OnVideoNaturalSizeChange(const gfx::Size& size) final;
74 void OnVideoOpacityChange(bool opaque) final; 74 void OnVideoOpacityChange(bool opaque) final;
75 void OnDurationChange(base::TimeDelta duration) final;
75 76
76 // Called when the DemuxerStreamProviderShim is ready to go (has a config, 77 // Called when the DemuxerStreamProviderShim is ready to go (has a config,
77 // pipe handle, etc) and can be handed off to a renderer for use. 78 // pipe handle, etc) and can be handed off to a renderer for use.
78 void OnStreamReady(const base::Callback<void(bool)>& callback); 79 void OnStreamReady(const base::Callback<void(bool)>& callback);
79 80
80 // Called when |audio_renderer_| initialization has completed. 81 // Called when |audio_renderer_| initialization has completed.
81 void OnRendererInitializeDone(const base::Callback<void(bool)>& callback, 82 void OnRendererInitializeDone(const base::Callback<void(bool)>& callback,
82 PipelineStatus status); 83 PipelineStatus status);
83 84
84 // Periodically polls the media time from the renderer and notifies the client 85 // Periodically polls the media time from the renderer and notifies the client
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 base::WeakPtr<MojoRendererService> weak_this_; 122 base::WeakPtr<MojoRendererService> weak_this_;
122 base::WeakPtrFactory<MojoRendererService> weak_factory_; 123 base::WeakPtrFactory<MojoRendererService> weak_factory_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(MojoRendererService); 125 DISALLOW_COPY_AND_ASSIGN(MojoRendererService);
125 }; 126 };
126 127
127 } // namespace media 128 } // namespace media
128 129
129 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_ 130 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_SERVICE_H_
OLDNEW
« no previous file with comments | « media/mojo/services/media_mojo_unittest.cc ('k') | media/mojo/services/mojo_renderer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698