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

Side by Side Diff: content/utility/webthread_impl_for_utility_thread.h

Issue 1544273002: Switch to standard integer types in content/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ 5 #ifndef CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_
6 #define CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ 6 #define CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_
7 7
8 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
9 #include "components/scheduler/child/webthread_base.h" 10 #include "components/scheduler/child/webthread_base.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 class WebThreadImplForUtilityThread : public scheduler::WebThreadBase { 14 class WebThreadImplForUtilityThread : public scheduler::WebThreadBase {
14 public: 15 public:
15 WebThreadImplForUtilityThread(); 16 WebThreadImplForUtilityThread();
16 ~WebThreadImplForUtilityThread() override; 17 ~WebThreadImplForUtilityThread() override;
17 18
18 // blink::WebThread implementation. 19 // blink::WebThread implementation.
19 blink::WebScheduler* scheduler() const override; 20 blink::WebScheduler* scheduler() const override;
20 blink::PlatformThreadId threadId() const override; 21 blink::PlatformThreadId threadId() const override;
21 22
22 // WebThreadBase implementation. 23 // WebThreadBase implementation.
23 base::SingleThreadTaskRunner* TaskRunner() const override; 24 base::SingleThreadTaskRunner* TaskRunner() const override;
24 scheduler::SingleThreadIdleTaskRunner* IdleTaskRunner() const override; 25 scheduler::SingleThreadIdleTaskRunner* IdleTaskRunner() const override;
25 26
26 private: 27 private:
27 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 28 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
28 blink::PlatformThreadId thread_id_; 29 blink::PlatformThreadId thread_id_;
29 30
30 DISALLOW_COPY_AND_ASSIGN(WebThreadImplForUtilityThread); 31 DISALLOW_COPY_AND_ASSIGN(WebThreadImplForUtilityThread);
31 }; 32 };
32 33
33 } // namespace content 34 } // namespace content
34 35
35 #endif // CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_ 36 #endif // CONTENT_UTILITY_WEBTHREAD_IMPL_FOR_UTILITY_THREAD_H_
OLDNEW
« no previous file with comments | « content/utility/utility_thread_impl.cc ('k') | content/zygote/zygote_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698