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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 class UtilityThreadImpl : public UtilityThread, | 36 class UtilityThreadImpl : public UtilityThread, |
37 public ChildThreadImpl { | 37 public ChildThreadImpl { |
38 public: | 38 public: |
39 UtilityThreadImpl(); | 39 UtilityThreadImpl(); |
40 // Constructor that's used when running in single process mode. | 40 // Constructor that's used when running in single process mode. |
41 explicit UtilityThreadImpl(const InProcessChildThreadParams& params); | 41 explicit UtilityThreadImpl(const InProcessChildThreadParams& params); |
42 ~UtilityThreadImpl() override; | 42 ~UtilityThreadImpl() override; |
43 void Shutdown() override; | 43 void Shutdown() override; |
44 | 44 |
45 void ReleaseProcessIfNeeded() override; | 45 void ReleaseProcessIfNeeded() override; |
| 46 void EnsureBlinkInitialized() override; |
46 | 47 |
47 private: | 48 private: |
48 void Init(); | 49 void Init(); |
49 | 50 |
50 // ChildThread implementation. | 51 // ChildThread implementation. |
51 bool OnControlMessageReceived(const IPC::Message& msg) override; | 52 bool OnControlMessageReceived(const IPC::Message& msg) override; |
52 | 53 |
53 // IPC message handlers. | 54 // IPC message handlers. |
54 void OnBatchModeStarted(); | 55 void OnBatchModeStarted(); |
55 void OnBatchModeFinished(); | 56 void OnBatchModeFinished(); |
(...skipping 19 matching lines...) Expand all Loading... |
75 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); | 76 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); |
76 }; | 77 }; |
77 | 78 |
78 #if defined(COMPILER_MSVC) | 79 #if defined(COMPILER_MSVC) |
79 #pragma warning(pop) | 80 #pragma warning(pop) |
80 #endif | 81 #endif |
81 | 82 |
82 } // namespace content | 83 } // namespace content |
83 | 84 |
84 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 85 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
OLD | NEW |