diff options
author | boliu@google.com <boliu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 21:52:48 +0000 |
---|---|---|
committer | boliu@google.com <boliu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-02 21:52:48 +0000 |
commit | 71cb533c8712331906346ddea2fce0c3fccec78c (patch) | |
tree | 08c6e472c937ca35022c4b5a0bc5981b0d1b2203 /media/base/mock_filters.cc | |
parent | 9a26e33ca80eb7352da8f0ce020c3c8402fdc6d7 (diff) | |
download | chromium_src-71cb533c8712331906346ddea2fce0c3fccec78c.zip chromium_src-71cb533c8712331906346ddea2fce0c3fccec78c.tar.gz chromium_src-71cb533c8712331906346ddea2fce0c3fccec78c.tar.bz2 |
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
Diffstat (limited to 'media/base/mock_filters.cc')
-rw-r--r-- | media/base/mock_filters.cc | 11 |
1 files changed, 8 insertions, 3 deletions
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 |