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

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

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 (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 <stddef.h>
7
6 #include <string> 8 #include <string>
7 9
8 #include "base/logging.h" 10 #include "base/logging.h"
9 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
10 #include "content/common/media/media_stream_options.h" 12 #include "content/common/media/media_stream_options.h"
11 #include "content/renderer/media/media_stream_video_source.h" 13 #include "content/renderer/media/media_stream_video_source.h"
14 #include "third_party/WebKit/public/platform/WebCString.h"
12 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 15 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
13 #include "third_party/WebKit/public/platform/WebCString.h"
14 #include "third_party/WebKit/public/platform/WebString.h" 16 #include "third_party/WebKit/public/platform/WebString.h"
15 17
16 namespace content { 18 namespace content {
17 namespace { 19 namespace {
18 20
19 void GetNativeMediaConstraints( 21 void GetNativeMediaConstraints(
20 const blink::WebVector<blink::WebMediaConstraint>& constraints, 22 const blink::WebVector<blink::WebMediaConstraint>& constraints,
21 webrtc::MediaConstraintsInterface::Constraints* native_constraints) { 23 webrtc::MediaConstraintsInterface::Constraints* native_constraints) {
22 DCHECK(native_constraints); 24 DCHECK(native_constraints);
23 for (size_t i = 0; i < constraints.size(); ++i) { 25 for (size_t i = 0; i < constraints.size(); ++i) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 iter->value = value; 98 iter->value = value;
97 return override_if_exists; 99 return override_if_exists;
98 } 100 }
99 } 101 }
100 // The key wasn't found, add it. 102 // The key wasn't found, add it.
101 constraints->push_back(Constraint(key, value)); 103 constraints->push_back(Constraint(key, value));
102 return true; 104 return true;
103 } 105 }
104 106
105 } // namespace content 107 } // 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