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

Side by Side Diff: base/thread_task_runner_handle.h

Issue 1800743003: base: Remove some unnecessary const scoped_refptr<>&. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 BASE_THREAD_TASK_RUNNER_HANDLE_H_ 5 #ifndef BASE_THREAD_TASK_RUNNER_HANDLE_H_
6 #define BASE_THREAD_TASK_RUNNER_HANDLE_H_ 6 #define BASE_THREAD_TASK_RUNNER_HANDLE_H_
7 7
8 #include "base/base_export.h" 8 #include "base/base_export.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 10
(...skipping 11 matching lines...) Expand all
22 // Gets the SingleThreadTaskRunner for the current thread. 22 // Gets the SingleThreadTaskRunner for the current thread.
23 static scoped_refptr<SingleThreadTaskRunner> Get(); 23 static scoped_refptr<SingleThreadTaskRunner> Get();
24 24
25 // Returns true if the SingleThreadTaskRunner is already created for 25 // Returns true if the SingleThreadTaskRunner is already created for
26 // the current thread. 26 // the current thread.
27 static bool IsSet(); 27 static bool IsSet();
28 28
29 // Binds |task_runner| to the current thread. |task_runner| must belong 29 // Binds |task_runner| to the current thread. |task_runner| must belong
30 // to the current thread for this to succeed. 30 // to the current thread for this to succeed.
31 explicit ThreadTaskRunnerHandle( 31 explicit ThreadTaskRunnerHandle(
32 const scoped_refptr<SingleThreadTaskRunner>& task_runner); 32 scoped_refptr<SingleThreadTaskRunner> task_runner);
33 ~ThreadTaskRunnerHandle(); 33 ~ThreadTaskRunnerHandle();
34 34
35 private: 35 private:
36 scoped_refptr<SingleThreadTaskRunner> task_runner_; 36 scoped_refptr<SingleThreadTaskRunner> task_runner_;
37 }; 37 };
38 38
39 } // namespace base 39 } // namespace base
40 40
41 #endif // BASE_THREAD_TASK_RUNNER_HANDLE_H_ 41 #endif // BASE_THREAD_TASK_RUNNER_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698