| 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/pepper/pepper_media_stream_video_track_host.h" | 5 #include "content/renderer/pepper/pepper_media_stream_video_track_host.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/rand_util.h" | 9 #include "base/rand_util.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 constraints.initialize(); | 532 constraints.initialize(); |
| 533 track_ = MediaStreamVideoTrack::CreateVideoTrack( | 533 track_ = MediaStreamVideoTrack::CreateVideoTrack( |
| 534 this, constraints, | 534 this, constraints, |
| 535 base::Bind( | 535 base::Bind( |
| 536 &PepperMediaStreamVideoTrackHost::OnTrackStarted, | 536 &PepperMediaStreamVideoTrackHost::OnTrackStarted, |
| 537 base::Unretained(this)), | 537 base::Unretained(this)), |
| 538 enabled); | 538 enabled); |
| 539 } | 539 } |
| 540 | 540 |
| 541 void PepperMediaStreamVideoTrackHost::OnTrackStarted( | 541 void PepperMediaStreamVideoTrackHost::OnTrackStarted( |
| 542 MediaStreamSource* source, bool success) { | 542 MediaStreamSource* source, |
| 543 DVLOG(3) << "OnTrackStarted result: " << success; | 543 MediaStreamRequestResult result, |
| 544 const blink::WebString& result_name) { |
| 545 DVLOG(3) << "OnTrackStarted result: " << result; |
| 544 } | 546 } |
| 545 | 547 |
| 546 } // namespace content | 548 } // namespace content |
| OLD | NEW |