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

Side by Side Diff: content/renderer/pepper/pepper_media_stream_video_track_host.cc

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add bug id and reviewer Created 6 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 #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 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 constraints.initialize(); 531 constraints.initialize();
532 track_ = MediaStreamVideoTrack::CreateVideoTrack( 532 track_ = MediaStreamVideoTrack::CreateVideoTrack(
533 this, constraints, 533 this, constraints,
534 base::Bind( 534 base::Bind(
535 &PepperMediaStreamVideoTrackHost::OnTrackStarted, 535 &PepperMediaStreamVideoTrackHost::OnTrackStarted,
536 base::Unretained(this)), 536 base::Unretained(this)),
537 enabled); 537 enabled);
538 } 538 }
539 539
540 void PepperMediaStreamVideoTrackHost::OnTrackStarted( 540 void PepperMediaStreamVideoTrackHost::OnTrackStarted(
541 MediaStreamSource* source, bool success) { 541 MediaStreamSource* source, content::MediaStreamRequestResult result) {
yzshen1 2014/07/25 17:48:49 content:: is not needed.
542 DVLOG(3) << "OnTrackStarted result: " << success; 542 DVLOG(3) << "OnTrackStarted result: " << result;
543 } 543 }
544 544
545 } // namespace content 545 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698