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

Side by Side Diff: media/base/callback.cc

Issue 3814013: FBTF: Monster ctor patch after changing heuristics in clang plugin. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: More add file fail Created 10 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « media/base/callback.h ('k') | media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "media/base/callback.h"
6
7 namespace media {
8
9 AutoTaskRunner::~AutoTaskRunner() {
10 if (task_.get()) {
11 task_->Run();
12 }
13 }
14
15 Callback0::Type* TaskToCallbackAdapter::NewCallback(Task* task) {
16 return new TaskToCallbackAdapter(task);
17 }
18
19 TaskToCallbackAdapter::~TaskToCallbackAdapter() {}
20
21 void TaskToCallbackAdapter::RunWithParams(const Tuple0& params) {
22 task_->Run();
23 }
24
25 TaskToCallbackAdapter::TaskToCallbackAdapter(Task* task) : task_(task) {}
26
27 } // namespace media
OLDNEW
« no previous file with comments | « media/base/callback.h ('k') | media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698