| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 private: | 49 private: |
| 50 void Init(); | 50 void Init(); |
| 51 | 51 |
| 52 // ChildThread implementation. | 52 // ChildThread implementation. |
| 53 bool OnControlMessageReceived(const IPC::Message& msg) override; | 53 bool OnControlMessageReceived(const IPC::Message& msg) override; |
| 54 | 54 |
| 55 // IPC message handlers. | 55 // IPC message handlers. |
| 56 void OnBatchModeStarted(); | 56 void OnBatchModeStarted(); |
| 57 void OnBatchModeFinished(); | 57 void OnBatchModeFinished(); |
| 58 | 58 |
| 59 #if defined(OS_POSIX) && defined(ENABLE_PLUGINS) | |
| 60 void OnLoadPlugins(const std::vector<base::FilePath>& plugin_paths); | |
| 61 #endif | |
| 62 | |
| 63 void BindProcessControlRequest( | 59 void BindProcessControlRequest( |
| 64 mojo::InterfaceRequest<content::mojom::ProcessControl> request); | 60 mojo::InterfaceRequest<content::mojom::ProcessControl> request); |
| 65 | 61 |
| 66 // True when we're running in batch mode. | 62 // True when we're running in batch mode. |
| 67 bool batch_mode_; | 63 bool batch_mode_; |
| 68 | 64 |
| 69 scoped_ptr<UtilityBlinkPlatformImpl> blink_platform_impl_; | 65 scoped_ptr<UtilityBlinkPlatformImpl> blink_platform_impl_; |
| 70 | 66 |
| 71 // Process control for Mojo application hosting. | 67 // Process control for Mojo application hosting. |
| 72 scoped_ptr<UtilityProcessControlImpl> process_control_; | 68 scoped_ptr<UtilityProcessControlImpl> process_control_; |
| 73 | 69 |
| 74 // Bindings to the mojom::ProcessControl impl. | 70 // Bindings to the mojom::ProcessControl impl. |
| 75 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; | 71 mojo::BindingSet<mojom::ProcessControl> process_control_bindings_; |
| 76 | 72 |
| 77 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); | 73 DISALLOW_COPY_AND_ASSIGN(UtilityThreadImpl); |
| 78 }; | 74 }; |
| 79 | 75 |
| 80 #if defined(COMPILER_MSVC) | 76 #if defined(COMPILER_MSVC) |
| 81 #pragma warning(pop) | 77 #pragma warning(pop) |
| 82 #endif | 78 #endif |
| 83 | 79 |
| 84 } // namespace content | 80 } // namespace content |
| 85 | 81 |
| 86 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ | 82 #endif // CONTENT_UTILITY_UTILITY_THREAD_IMPL_H_ |
| OLD | NEW |