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

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

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/BUILD.gn ('k') | content/utility/utility_blink_platform_impl.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_UTILITY_BLINK_PLATFORM_IMPL_H_ 5 #ifndef CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_
6 #define CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ 6 #define CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/child/blink_platform_impl.h" 11 #include "content/child/blink_platform_impl.h"
12 12
13 namespace blink {
14 namespace scheduler {
15 class WebThreadImplForUtilityThread;
16 }
17 }
18
13 namespace content { 19 namespace content {
14 20
15 class WebThreadImplForUtilityThread;
16
17 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { 21 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl {
18 public: 22 public:
19 UtilityBlinkPlatformImpl(); 23 UtilityBlinkPlatformImpl();
20 ~UtilityBlinkPlatformImpl() override; 24 ~UtilityBlinkPlatformImpl() override;
21 25
22 // BlinkPlatformImpl implementation. 26 // BlinkPlatformImpl implementation.
23 blink::WebThread* currentThread() override; 27 blink::WebThread* currentThread() override;
24 28
25 private: 29 private:
26 std::unique_ptr<WebThreadImplForUtilityThread> main_thread_; 30 std::unique_ptr<blink::scheduler::WebThreadImplForUtilityThread> main_thread_;
27 31
28 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); 32 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl);
29 }; 33 };
30 34
31 } // namespace content 35 } // namespace content
32 36
33 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ 37 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/utility/BUILD.gn ('k') | content/utility/utility_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698