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

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

Issue 2970823003: Rename MediaStreamVideoSource:GetCurrentFormatImpl() to GetCurrentFormat() (Closed)
Patch Set: add DCHECK Created 3 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 CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
7 7
8 #include "content/renderer/media/media_stream_video_source.h" 8 #include "content/renderer/media/media_stream_video_source.h"
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 // Implements MediaStreamVideoSource. 52 // Implements MediaStreamVideoSource.
53 void RequestRefreshFrame() override; 53 void RequestRefreshFrame() override;
54 54
55 protected: 55 protected:
56 // Implements MediaStreamVideoSource. 56 // Implements MediaStreamVideoSource.
57 void StartSourceImpl( 57 void StartSourceImpl(
58 const VideoCaptureDeliverFrameCB& frame_callback) override; 58 const VideoCaptureDeliverFrameCB& frame_callback) override;
59 void StopSourceImpl() override; 59 void StopSourceImpl() override;
60 base::Optional<media::VideoCaptureFormat> GetCurrentFormatImpl() 60 base::Optional<media::VideoCaptureFormat> GetCurrentFormat() const override;
61 const override;
62 61
63 private: 62 private:
64 media::VideoCaptureFormat format_; 63 media::VideoCaptureFormat format_;
65 bool respond_to_request_refresh_frame_; 64 bool respond_to_request_refresh_frame_;
66 int max_requested_height_; 65 int max_requested_height_;
67 int max_requested_width_; 66 int max_requested_width_;
68 double max_requested_frame_rate_; 67 double max_requested_frame_rate_;
69 bool attempted_to_start_; 68 bool attempted_to_start_;
70 VideoCaptureDeliverFrameCB frame_callback_; 69 VideoCaptureDeliverFrameCB frame_callback_;
71 70
72 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource); 71 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamVideoSource);
73 }; 72 };
74 73
75 } // namespace content 74 } // namespace content
76 75
77 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_ 76 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_VIDEO_SOURCE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_video_source.cc ('k') | content/renderer/media/mock_media_stream_video_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698