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