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

Side by Side Diff: content/browser/renderer_host/media/video_capture_controller.cc

Issue 2228403003: content: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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 4
5 #include "content/browser/renderer_host/media/video_capture_controller.h" 5 #include "content/browser/renderer_host/media/video_capture_controller.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 base::Bind(&ReturnVideoFrame, frame, sync_token)); 343 base::Bind(&ReturnVideoFrame, frame, sync_token));
344 } 344 }
345 345
346 const media::VideoCaptureFormat& 346 const media::VideoCaptureFormat&
347 VideoCaptureController::GetVideoCaptureFormat() const { 347 VideoCaptureController::GetVideoCaptureFormat() const {
348 DCHECK_CURRENTLY_ON(BrowserThread::IO); 348 DCHECK_CURRENTLY_ON(BrowserThread::IO);
349 return video_capture_format_; 349 return video_capture_format_;
350 } 350 }
351 351
352 VideoCaptureController::~VideoCaptureController() { 352 VideoCaptureController::~VideoCaptureController() {
353 STLDeleteContainerPointers(controller_clients_.begin(), 353 base::STLDeleteContainerPointers(controller_clients_.begin(),
354 controller_clients_.end()); 354 controller_clients_.end());
355 } 355 }
356 356
357 void VideoCaptureController::DoIncomingCapturedVideoFrameOnIOThread( 357 void VideoCaptureController::DoIncomingCapturedVideoFrameOnIOThread(
358 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer, 358 std::unique_ptr<media::VideoCaptureDevice::Client::Buffer> buffer,
359 const scoped_refptr<VideoFrame>& frame) { 359 const scoped_refptr<VideoFrame>& frame) {
360 DCHECK_CURRENTLY_ON(BrowserThread::IO); 360 DCHECK_CURRENTLY_ON(BrowserThread::IO);
361 const int buffer_id = buffer->id(); 361 const int buffer_id = buffer->id();
362 DCHECK_NE(buffer_id, VideoCaptureBufferPool::kInvalidId); 362 DCHECK_NE(buffer_id, VideoCaptureBufferPool::kInvalidId);
363 363
364 int count = 0; 364 int count = 0;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 int session_id, 507 int session_id,
508 const ControllerClients& clients) { 508 const ControllerClients& clients) {
509 for (auto* client : clients) { 509 for (auto* client : clients) {
510 if (client->session_id == session_id) 510 if (client->session_id == session_id)
511 return client; 511 return client;
512 } 512 }
513 return NULL; 513 return NULL;
514 } 514 }
515 515
516 } // namespace content 516 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698