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

Side by Side Diff: media/cast/cast_config.h

Issue 901833004: [Cast] Repurpose CastInitializationStatus for variable frame size support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fixes. Created 5 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CAST_CAST_CONFIG_H_ 5 #ifndef MEDIA_CAST_CAST_CONFIG_H_
6 #define MEDIA_CAST_CAST_CONFIG_H_ 6 #define MEDIA_CAST_CAST_CONFIG_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // strings, crypto is not being used. 169 // strings, crypto is not being used.
170 std::string aes_key; 170 std::string aes_key;
171 std::string aes_iv_mask; 171 std::string aes_iv_mask;
172 }; 172 };
173 173
174 // Import from media::cast. 174 // Import from media::cast.
175 175
176 typedef Packet Packet; 176 typedef Packet Packet;
177 typedef PacketList PacketList; 177 typedef PacketList PacketList;
178 178
179 typedef base::Callback<void(CastInitializationStatus)> 179 // Callback that is run to update the client with current status. This is used
180 CastInitializationCallback; 180 // to allow the client to wait for asynchronous initialization to complete
181 // before sending frames, and also to be notified of any runtime errors that
182 // have halted the session.
183 typedef base::Callback<void(OperationalStatus)> StatusChangeCallback;
181 184
182 typedef base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>, 185 typedef base::Callback<void(scoped_refptr<base::SingleThreadTaskRunner>,
183 scoped_ptr<media::VideoEncodeAccelerator>)> 186 scoped_ptr<media::VideoEncodeAccelerator>)>
184 ReceiveVideoEncodeAcceleratorCallback; 187 ReceiveVideoEncodeAcceleratorCallback;
185 typedef base::Callback<void(const ReceiveVideoEncodeAcceleratorCallback&)> 188 typedef base::Callback<void(const ReceiveVideoEncodeAcceleratorCallback&)>
186 CreateVideoEncodeAcceleratorCallback; 189 CreateVideoEncodeAcceleratorCallback;
187 190
188 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)> 191 typedef base::Callback<void(scoped_ptr<base::SharedMemory>)>
189 ReceiveVideoEncodeMemoryCallback; 192 ReceiveVideoEncodeMemoryCallback;
190 typedef base::Callback<void(size_t size, 193 typedef base::Callback<void(size_t size,
191 const ReceiveVideoEncodeMemoryCallback&)> 194 const ReceiveVideoEncodeMemoryCallback&)>
192 CreateVideoEncodeMemoryCallback; 195 CreateVideoEncodeMemoryCallback;
193 196
194 } // namespace cast 197 } // namespace cast
195 } // namespace media 198 } // namespace media
196 199
197 #endif // MEDIA_CAST_CAST_CONFIG_H_ 200 #endif // MEDIA_CAST_CAST_CONFIG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698