| OLD | NEW |
| 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 CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 5 #ifndef CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
| 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 6 #define CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public ChildThreadImpl { | 33 public ChildThreadImpl { |
| 34 public: | 34 public: |
| 35 UtilityThreadImpl(); | 35 UtilityThreadImpl(); |
| 36 // Constructor that's used when running in single process mode. | 36 // Constructor that's used when running in single process mode. |
| 37 explicit UtilityThreadImpl(const InProcessChildThreadParams& params); | 37 explicit UtilityThreadImpl(const InProcessChildThreadParams& params); |
| 38 ~UtilityThreadImpl() override; | 38 ~UtilityThreadImpl() override; |
| 39 void Shutdown() override; | 39 void Shutdown() override; |
| 40 | 40 |
| 41 void ReleaseProcessIfNeeded() override; | 41 void ReleaseProcessIfNeeded() override; |
| 42 void EnsureBlinkInitialized() override; | 42 void EnsureBlinkInitialized() override; |
| 43 void EnsureReadyForSkia() override; |
| 43 | 44 |
| 44 private: | 45 private: |
| 45 void Init(); | 46 void Init(); |
| 46 | 47 |
| 47 // ChildThread implementation. | 48 // ChildThread implementation. |
| 48 bool OnControlMessageReceived(const IPC::Message& msg) override; | 49 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 49 | 50 |
| 50 // IPC message handlers. | 51 // IPC message handlers. |
| 51 void OnBatchModeStarted(); | 52 void OnBatchModeStarted(); |
| 52 void OnBatchModeFinished(); | 53 void OnBatchModeFinished(); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 70 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); | 71 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); |
| 71 }; | 72 }; |
| 72 | 73 |
| 73 #if defined(COMPILER_MSVC) | 74 #if defined(COMPILER_MSVC) |
| 74 #pragma warning(pop) | 75 #pragma warning(pop) |
| 75 #endif | 76 #endif |
| 76 | 77 |
| 77 } // namespace content | 78 } // namespace content |
| 78 | 79 |
| 79 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 80 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
| OLD | NEW |