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

Side by Side Diff: media/cast/test/skewed_single_thread_task_runner.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_ 5 #ifndef MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_
6 #define MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_ 6 #define MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 const base::Closure& task, 33 const base::Closure& task,
34 base::TimeDelta delay) final; 34 base::TimeDelta delay) final;
35 35
36 bool RunsTasksOnCurrentThread() const final; 36 bool RunsTasksOnCurrentThread() const final;
37 37
38 // This function is currently not used, and will return false. 38 // This function is currently not used, and will return false.
39 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, 39 bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
40 const base::Closure& task, 40 const base::Closure& task,
41 base::TimeDelta delay) final; 41 base::TimeDelta delay) final;
42 42
43 std::string GetThreadName() const override;
44
43 protected: 45 protected:
44 ~SkewedSingleThreadTaskRunner() final; 46 ~SkewedSingleThreadTaskRunner() final;
45 47
46 private: 48 private:
47 double skew_; 49 double skew_;
48 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 50 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
49 51
50 DISALLOW_COPY_AND_ASSIGN(SkewedSingleThreadTaskRunner); 52 DISALLOW_COPY_AND_ASSIGN(SkewedSingleThreadTaskRunner);
51 }; 53 };
52 54
53 } // namespace test 55 } // namespace test
54 } // namespace cast 56 } // namespace cast
55 } // namespace media 57 } // namespace media
56 58
57 #endif // MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_ 59 #endif // MEDIA_CAST_TEST_SKEWED_TASK_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698