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

Side by Side Diff: content/renderer/media/rtc_media_constraints.cc

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/renderer/media/rtc_media_constraints.h" 4 #include "content/renderer/media/rtc_media_constraints.h"
5 5
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "content/common/media/media_stream_options.h" 8 #include "content/common/media/media_stream_options.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaConstraints .h" 9 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebCString.h" 10 #include "third_party/WebKit/public/platform/WebCString.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 11 #include "third_party/WebKit/public/platform/WebString.h"
12 12
13 namespace content { 13 namespace content {
14 namespace { 14 namespace {
15 15
16 void GetNativeMediaConstraints( 16 void GetNativeMediaConstraints(
17 const WebKit::WebVector<WebKit::WebMediaConstraint>& constraints, 17 const WebKit::WebVector<WebKit::WebMediaConstraint>& constraints,
18 webrtc::MediaConstraintsInterface::Constraints* native_constraints) { 18 webrtc::MediaConstraintsInterface::Constraints* native_constraints) {
19 DCHECK(native_constraints); 19 DCHECK(native_constraints);
20 for (size_t i = 0; i < constraints.size(); ++i) { 20 for (size_t i = 0; i < constraints.size(); ++i) {
21 webrtc::MediaConstraintsInterface::Constraint new_constraint; 21 webrtc::MediaConstraintsInterface::Constraint new_constraint;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 RTCMediaConstraints::GetOptional() const { 65 RTCMediaConstraints::GetOptional() const {
66 return optional_; 66 return optional_;
67 } 67 }
68 68
69 void RTCMediaConstraints::AddOptional(const std::string& key, 69 void RTCMediaConstraints::AddOptional(const std::string& key,
70 const std::string& value) { 70 const std::string& value) {
71 optional_.push_back(Constraint(key, value)); 71 optional_.push_back(Constraint(key, value));
72 } 72 }
73 73
74 } // namespace content 74 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_dtmf_sender_handler.h ('k') | content/renderer/media/rtc_peer_connection_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698