OLD | NEW |
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 "base/macros.h" |
8 #include "content/child/blink_platform_impl.h" | 9 #include "content/child/blink_platform_impl.h" |
9 | 10 |
10 namespace content { | 11 namespace content { |
11 | 12 |
12 class WebThreadImplForUtilityThread; | 13 class WebThreadImplForUtilityThread; |
13 | 14 |
14 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { | 15 class UtilityBlinkPlatformImpl : public BlinkPlatformImpl { |
15 public: | 16 public: |
16 UtilityBlinkPlatformImpl(); | 17 UtilityBlinkPlatformImpl(); |
17 ~UtilityBlinkPlatformImpl() override; | 18 ~UtilityBlinkPlatformImpl() override; |
18 | 19 |
19 // BlinkPlatformImpl implementation. | 20 // BlinkPlatformImpl implementation. |
20 blink::WebThread* currentThread() override; | 21 blink::WebThread* currentThread() override; |
21 | 22 |
22 private: | 23 private: |
23 scoped_ptr<WebThreadImplForUtilityThread> main_thread_; | 24 scoped_ptr<WebThreadImplForUtilityThread> main_thread_; |
24 | 25 |
25 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); | 26 DISALLOW_COPY_AND_ASSIGN(UtilityBlinkPlatformImpl); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace content | 29 } // namespace content |
29 | 30 |
30 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ | 31 #endif // CONTENT_UTILITY_UTILITY_BLINK_PLATFORM_IMPL_H_ |
OLD | NEW |