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

Side by Side Diff: base/threading/sequenced_worker_pool_task_runner.h

Issue 9401032: Make SequencedWorkerPool a TaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BASE_THREADING_SEQUENCED_WORKER_POOL_TASK_RUNNER_H_
6 #define BASE_THREADING_SEQUENCED_WORKER_POOL_TASK_RUNNER_H_
7 #pragma once
8
9 #include "base/base_export.h"
10 #include "base/compiler_specific.h"
11 #include "base/task_runner.h"
12 #include "base/threading/sequenced_worker_pool_inner.h"
13
14 namespace base {
15 namespace internal {
16
17 class SequencedWorkerPoolInner;
18
19 // This class is part of the SequencedWorkerPool implementation.
20 // DO NOT USE THIS CLASS DIRECTLY YOURSELF.
21 class BASE_EXPORT SequencedWorkerPoolTaskRunner : public TaskRunner {
22 public:
23 SequencedWorkerPoolTaskRunner(
24 const scoped_refptr<SequencedWorkerPoolInner>& inner);
25 virtual ~SequencedWorkerPoolTaskRunner();
26
27 // TaskRunner implementation.
28 virtual bool PostDelayedTask(const tracked_objects::Location& from_here,
29 const Closure& task,
30 int64 delay_ms) OVERRIDE;
31 virtual bool RunsTasksOnCurrentThread() const OVERRIDE;
32
33 private:
34 const scoped_refptr<SequencedWorkerPoolInner> inner_;
35
36 DISALLOW_COPY_AND_ASSIGN(SequencedWorkerPoolTaskRunner);
37 };
38
39 } // namespace internal
40 } // namespace base
41
42 #endif // BASE_THREADING_SEQUENCED_WORKER_POOL_INNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698