blob: c01c787b2ccc96d331e15b3faa6febe4bf08a592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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.
// A simple callback that you can use to wait for events on a thread.
#ifndef CHROME_TEST_SIGNALING_TASK_H_
#define CHROME_TEST_SIGNALING_TASK_H_
#pragma once
#include "base/task.h"
namespace base {
class WaitableEvent;
}
class SignalingTask : public Task {
public:
explicit SignalingTask(base::WaitableEvent* event);
virtual ~SignalingTask();
virtual void Run();
private:
base::WaitableEvent* event_;
};
#endif // CHROME_TEST_SIGNALING_TASK_H_
|