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

Side by Side Diff: media/audio/audio_output_controller.cc

Issue 11413078: Tab Audio Capture: Browser-side connect/disconnect functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 4
5 #include "media/audio/audio_output_controller.h" 5 #include "media/audio/audio_output_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 case kCreated: 385 case kCreated:
386 case kPausedWhenStarting: 386 case kPausedWhenStarting:
387 case kPaused: 387 case kPaused:
388 // From the outside these three states are equivalent. 388 // From the outside these three states are equivalent.
389 return; 389 return;
390 default: 390 default:
391 NOTREACHED() << "Invalid original state."; 391 NOTREACHED() << "Invalid original state.";
392 } 392 }
393 } 393 }
394 394
395 DivertedAudioOutputStream* AudioOutputController::Divert() {
396 DVLOG(1) << "STUB: AudioOutputController@" << this << "->Divert()";
397 // TODO: Do something similar to OnDeviceChange() to stop |stream_| and create
398 // the "diverted" stream. The original stream's state is restored upon
399 // destruction of the diverted stream object.
400 return NULL;
401 }
402
403
395 } // namespace media 404 } // namespace media
OLDNEW
« media/audio/audio_output_controller.h ('K') | « media/audio/audio_output_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698