From 71cb533c8712331906346ddea2fce0c3fccec78c Mon Sep 17 00:00:00 2001 From: "boliu@google.com" Date: Wed, 2 Jun 2010 21:52:48 +0000 Subject: Change MediaFilter::Stop() to accept a callback so that Stop() is asynchronous. So far PipelineImpl handles asynchronous MediaFilter::Stop(). The actual change to make MediaFilter::Stop() asynchronous will be in another check in. BUG=16059 TEST=Unit tests still runs Review URL: http://codereview.chromium.org/2101015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48769 0039d316-1c4b-4281-b951-d872f2087c98 --- media/base/mock_filters.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'media/base/mock_filters.cc') diff --git a/media/base/mock_filters.cc b/media/base/mock_filters.cc index 7b854fc..f2110ff 100644 --- a/media/base/mock_filters.cc +++ b/media/base/mock_filters.cc @@ -1,6 +1,6 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this -// source code is governed by a BSD-style license that can be found in the -// LICENSE file. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. #include "media/base/mock_filters.h" @@ -15,4 +15,9 @@ void DestroyFilterCallback(::testing::Unused, FilterCallback* callback) { delete callback; } +void RunStopFilterCallback(FilterCallback* callback) { + callback->Run(); + delete callback; +} + } // namespace media -- cgit v1.1