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

Side by Side Diff: content/renderer/media/media_stream_video_source.h

Issue 1142063003: content/child: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix. Created 5 years, 7 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 CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 void AddTrack(MediaStreamVideoTrack* track, 56 void AddTrack(MediaStreamVideoTrack* track,
57 const VideoCaptureDeliverFrameCB& frame_callback, 57 const VideoCaptureDeliverFrameCB& frame_callback,
58 const blink::WebMediaConstraints& constraints, 58 const blink::WebMediaConstraints& constraints,
59 const ConstraintsCallback& callback); 59 const ConstraintsCallback& callback);
60 void RemoveTrack(MediaStreamVideoTrack* track); 60 void RemoveTrack(MediaStreamVideoTrack* track);
61 61
62 // Return true if |name| is a constraint supported by MediaStreamVideoSource. 62 // Return true if |name| is a constraint supported by MediaStreamVideoSource.
63 static bool IsConstraintSupported(const std::string& name); 63 static bool IsConstraintSupported(const std::string& name);
64 64
65 // Returns the MessageLoopProxy where video frames will be delivered on. 65 // Returns the MessageLoopProxy where video frames will be delivered on.
66 const scoped_refptr<base::MessageLoopProxy>& io_message_loop() const; 66 base::SingleThreadTaskRunner* io_task_runner() const;
67 67
68 // Constraint keys used by a video source. 68 // Constraint keys used by a video source.
69 // Specified by draft-alvestrand-constraints-resolution-00b 69 // Specified by draft-alvestrand-constraints-resolution-00b
70 static const char kMinAspectRatio[]; // minAspectRatio 70 static const char kMinAspectRatio[]; // minAspectRatio
71 static const char kMaxAspectRatio[]; // maxAspectRatio 71 static const char kMaxAspectRatio[]; // maxAspectRatio
72 static const char kMaxWidth[]; // maxWidth 72 static const char kMaxWidth[]; // maxWidth
73 static const char kMinWidth[]; // minWidth 73 static const char kMinWidth[]; // minWidth
74 static const char kMaxHeight[]; // maxHeight 74 static const char kMaxHeight[]; // maxHeight
75 static const char kMinHeight[]; // minHeight 75 static const char kMinHeight[]; // minHeight
76 static const char kMaxFrameRate[]; // maxFrameRate 76 static const char kMaxFrameRate[]; // maxFrameRate
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 // NOTE: Weak pointers must be invalidated before all other member variables. 183 // NOTE: Weak pointers must be invalidated before all other member variables.
184 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_; 184 base::WeakPtrFactory<MediaStreamVideoSource> weak_factory_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource); 186 DISALLOW_COPY_AND_ASSIGN(MediaStreamVideoSource);
187 }; 187 };
188 188
189 } // namespace content 189 } // namespace content
190 190
191 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_ 191 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/audio_message_filter.cc ('k') | content/renderer/media/media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698