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

Side by Side Diff: components/scheduler/child/scheduler_tqm_delegate_impl.h

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed media_unittests Created 4 years, 7 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_
6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 void SetDefaultTaskRunner( 26 void SetDefaultTaskRunner(
27 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override; 27 scoped_refptr<base::SingleThreadTaskRunner> task_runner) override;
28 void RestoreDefaultTaskRunner() override; 28 void RestoreDefaultTaskRunner() override;
29 bool PostDelayedTask(const tracked_objects::Location& from_here, 29 bool PostDelayedTask(const tracked_objects::Location& from_here,
30 const base::Closure& task, 30 const base::Closure& task,
31 base::TimeDelta delay) override; 31 base::TimeDelta delay) override;
32 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 32 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
33 const base::Closure& task, 33 const base::Closure& task,
34 base::TimeDelta delay) override; 34 base::TimeDelta delay) override;
35 bool RunsTasksOnCurrentThread() const override; 35 bool RunsTasksOnCurrentThread() const override;
36 std::string GetThreadName() const override;
36 bool IsNested() const override; 37 bool IsNested() const override;
37 base::TimeTicks NowTicks() override; 38 base::TimeTicks NowTicks() override;
38 39
39 protected: 40 protected:
40 ~SchedulerTqmDelegateImpl() override; 41 ~SchedulerTqmDelegateImpl() override;
41 42
42 private: 43 private:
43 SchedulerTqmDelegateImpl(base::MessageLoop* message_loop, 44 SchedulerTqmDelegateImpl(base::MessageLoop* message_loop,
44 std::unique_ptr<base::TickClock> time_source); 45 std::unique_ptr<base::TickClock> time_source);
45 46
46 // Not owned. 47 // Not owned.
47 base::MessageLoop* message_loop_; 48 base::MessageLoop* message_loop_;
48 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_; 49 scoped_refptr<SingleThreadTaskRunner> message_loop_task_runner_;
49 std::unique_ptr<base::TickClock> time_source_; 50 std::unique_ptr<base::TickClock> time_source_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl); 52 DISALLOW_COPY_AND_ASSIGN(SchedulerTqmDelegateImpl);
52 }; 53 };
53 54
54 } // namespace scheduler 55 } // namespace scheduler
55 56
56 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_ 57 #endif // COMPONENTS_SCHEDULER_CHILD_SCHEDULER_TQM_DELEGATE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698