| 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 #include "content/utility/utility_thread_impl.h" | 5 #include "content/utility/utility_thread_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 dest->push_back(typename DEST::value_type(*i)); | 30 dest->push_back(typename DEST::value_type(*i)); |
| 31 } | 31 } |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 UtilityThreadImpl::UtilityThreadImpl() : single_process_(false) { | 35 UtilityThreadImpl::UtilityThreadImpl() : single_process_(false) { |
| 36 Init(); | 36 Init(); |
| 37 } | 37 } |
| 38 | 38 |
| 39 UtilityThreadImpl::UtilityThreadImpl(const std::string& channel_name) | 39 UtilityThreadImpl::UtilityThreadImpl(const std::string& channel_name) |
| 40 : ChildThread(channel_name), | 40 : ChildThread(Options(channel_name, false)), |
| 41 single_process_(true) { | 41 single_process_(true) { |
| 42 Init(); | 42 Init(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 UtilityThreadImpl::~UtilityThreadImpl() { | 45 UtilityThreadImpl::~UtilityThreadImpl() { |
| 46 } | 46 } |
| 47 | 47 |
| 48 void UtilityThreadImpl::Shutdown() { | 48 void UtilityThreadImpl::Shutdown() { |
| 49 ChildThread::Shutdown(); | 49 ChildThread::Shutdown(); |
| 50 | 50 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 Send(new UtilityHostMsg_LoadPluginFailed(i, plugin_paths[i])); | 138 Send(new UtilityHostMsg_LoadPluginFailed(i, plugin_paths[i])); |
| 139 else | 139 else |
| 140 Send(new UtilityHostMsg_LoadedPlugin(i, plugin)); | 140 Send(new UtilityHostMsg_LoadedPlugin(i, plugin)); |
| 141 } | 141 } |
| 142 | 142 |
| 143 ReleaseProcessIfNeeded(); | 143 ReleaseProcessIfNeeded(); |
| 144 } | 144 } |
| 145 #endif | 145 #endif |
| 146 | 146 |
| 147 } // namespace content | 147 } // namespace content |
| OLD | NEW |