| OLD | NEW |
| 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 #include "content/renderer/media/media_stream_video_capturer_source.h" | 5 #include "content/renderer/media/media_stream_video_capturer_source.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 358 base::ResetAndReturn(&running_callback_).Run(true); | 358 base::ResetAndReturn(&running_callback_).Run(true); |
| 359 break; | 359 break; |
| 360 | 360 |
| 361 case VIDEO_CAPTURE_STATE_STOPPING: | 361 case VIDEO_CAPTURE_STATE_STOPPING: |
| 362 case VIDEO_CAPTURE_STATE_STOPPED: | 362 case VIDEO_CAPTURE_STATE_STOPPED: |
| 363 case VIDEO_CAPTURE_STATE_ERROR: | 363 case VIDEO_CAPTURE_STATE_ERROR: |
| 364 case VIDEO_CAPTURE_STATE_ENDED: | 364 case VIDEO_CAPTURE_STATE_ENDED: |
| 365 base::ResetAndReturn(&running_callback_).Run(false); | 365 base::ResetAndReturn(&running_callback_).Run(false); |
| 366 break; | 366 break; |
| 367 | 367 |
| 368 case VIDEO_CAPTURE_STATE_STARTING: | |
| 369 case VIDEO_CAPTURE_STATE_PAUSED: | 368 case VIDEO_CAPTURE_STATE_PAUSED: |
| 370 case VIDEO_CAPTURE_STATE_RESUMED: | 369 case VIDEO_CAPTURE_STATE_RESUMED: |
| 371 // Not applicable to reporting on device start success/failure. | 370 // Not applicable to reporting on device start success/failure. |
| 372 break; | 371 break; |
| 373 } | 372 } |
| 374 } | 373 } |
| 375 | 374 |
| 376 void LocalVideoCapturerSource::OnDeviceFormatsInUseReceived( | 375 void LocalVideoCapturerSource::OnDeviceFormatsInUseReceived( |
| 377 const media::VideoCaptureFormats& formats_in_use) { | 376 const media::VideoCaptureFormats& formats_in_use) { |
| 378 DVLOG(3) << __func__ << ", #formats received: " << formats_in_use.size(); | 377 DVLOG(3) << __func__ << ", #formats received: " << formats_in_use.size(); |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 void MediaStreamVideoCapturerSource::OnStarted(bool result) { | 495 void MediaStreamVideoCapturerSource::OnStarted(bool result) { |
| 497 OnStartDone(result ? MEDIA_DEVICE_OK : MEDIA_DEVICE_TRACK_START_FAILURE); | 496 OnStartDone(result ? MEDIA_DEVICE_OK : MEDIA_DEVICE_TRACK_START_FAILURE); |
| 498 } | 497 } |
| 499 | 498 |
| 500 const char* | 499 const char* |
| 501 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { | 500 MediaStreamVideoCapturerSource::GetPowerLineFrequencyForTesting() const { |
| 502 return kPowerLineFrequency; | 501 return kPowerLineFrequency; |
| 503 } | 502 } |
| 504 | 503 |
| 505 } // namespace content | 504 } // namespace content |
| OLD | NEW |