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

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

Issue 2101043003: Plumb callbacks from mojo media service to client. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Remove unneeded deps from typemap file. Created 4 years, 5 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_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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(int64_t time_usec, int64_t max_time_usec) 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;
69 void OnStatisticsUpdate(const PipelineStatistics& stats) override;
68 70
69 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple 71 // Binds |remote_renderer_| to the mojo message pipe. Can be called multiple
70 // times. If an error occurs during connection, OnConnectionError will be 72 // times. If an error occurs during connection, OnConnectionError will be
71 // called asynchronously. 73 // called asynchronously.
72 void BindRemoteRendererIfNeeded(); 74 void BindRemoteRendererIfNeeded();
73 75
74 // Callback for connection error on |remote_renderer_|. 76 // Callback for connection error on |remote_renderer_|.
75 void OnConnectionError(); 77 void OnConnectionError();
76 78
77 // Callback for connection error on |audio_stream_| and |video_stream_|. 79 // Callback for connection error on |audio_stream_| and |video_stream_|.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Lock used to serialize access for |time_|. 134 // Lock used to serialize access for |time_|.
133 mutable base::Lock lock_; 135 mutable base::Lock lock_;
134 base::TimeDelta time_; 136 base::TimeDelta time_;
135 137
136 DISALLOW_COPY_AND_ASSIGN(MojoRenderer); 138 DISALLOW_COPY_AND_ASSIGN(MojoRenderer);
137 }; 139 };
138 140
139 } // namespace media 141 } // namespace media
140 142
141 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_ 143 #endif // MEDIA_MOJO_CLIENTS_MOJO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698