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

Side by Side Diff: talk/session/media/channelmanager.cc

Issue 1413483003: Added option to specify a maximum file size when recording an AEC dump. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Added function to avoid breaking Chromium. Created 5 years 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 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2004 Google Inc. 3 * Copyright 2004 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 case MSG_VIDEOCAPTURESTATE: { 543 case MSG_VIDEOCAPTURESTATE: {
544 CaptureStateParams* data = 544 CaptureStateParams* data =
545 static_cast<CaptureStateParams*>(message->pdata); 545 static_cast<CaptureStateParams*>(message->pdata);
546 SignalVideoCaptureStateChange(data->capturer, data->state); 546 SignalVideoCaptureStateChange(data->capturer, data->state);
547 delete data; 547 delete data;
548 break; 548 break;
549 } 549 }
550 } 550 }
551 } 551 }
552 552
553 bool ChannelManager::StartAecDump(rtc::PlatformFile file) { 553 bool ChannelManager::StartAecDump(rtc::PlatformFile file,
554 return worker_thread_->Invoke<bool>( 554 int64_t max_size_bytes) {
555 Bind(&MediaEngineInterface::StartAecDump, media_engine_.get(), file)); 555 return worker_thread_->Invoke<bool>(Bind(&MediaEngineInterface::StartAecDump,
556 media_engine_.get(), file,
557 max_size_bytes));
556 } 558 }
557 559
558 void ChannelManager::StopAecDump() { 560 void ChannelManager::StopAecDump() {
559 worker_thread_->Invoke<void>( 561 worker_thread_->Invoke<void>(
560 Bind(&MediaEngineInterface::StopAecDump, media_engine_.get())); 562 Bind(&MediaEngineInterface::StopAecDump, media_engine_.get()));
561 } 563 }
562 564
563 bool ChannelManager::StartRtcEventLog(rtc::PlatformFile file) { 565 bool ChannelManager::StartRtcEventLog(rtc::PlatformFile file) {
564 return worker_thread_->Invoke<bool>( 566 return worker_thread_->Invoke<bool>(
565 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file)); 567 Bind(&MediaEngineInterface::StartRtcEventLog, media_engine_.get(), file));
566 } 568 }
567 569
568 void ChannelManager::StopRtcEventLog() { 570 void ChannelManager::StopRtcEventLog() {
569 worker_thread_->Invoke<void>( 571 worker_thread_->Invoke<void>(
570 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get())); 572 Bind(&MediaEngineInterface::StopRtcEventLog, media_engine_.get()));
571 } 573 }
572 574
573 } // namespace cricket 575 } // namespace cricket
OLDNEW
« no previous file with comments | « talk/session/media/channelmanager.h ('k') | webrtc/examples/androidapp/src/org/appspot/apprtc/PeerConnectionClient.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698