Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: content/utility/utility_thread_impl.cc

Issue 382333002: Introduce ChannelMojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | ipc/BUILD.gn » ('j') | ipc/ipc_channel.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698