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

Side by Side Diff: content/browser/utility_process_host_impl.cc

Issue 532833003: content/ fixups for scoped_refptr operator T* removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error Created 6 years, 3 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
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/browser/utility_process_host_impl.h" 5 #include "content/browser/utility_process_host_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 #elif defined(OS_POSIX) 79 #elif defined(OS_POSIX)
80 base::EnvironmentMap env_; 80 base::EnvironmentMap env_;
81 bool no_sandbox_; 81 bool no_sandbox_;
82 int ipc_fd_; 82 int ipc_fd_;
83 #endif // OS_WIN 83 #endif // OS_WIN
84 }; 84 };
85 85
86 UtilityMainThreadFactoryFunction g_utility_main_thread_factory = NULL; 86 UtilityMainThreadFactoryFunction g_utility_main_thread_factory = NULL;
87 87
88 UtilityProcessHost* UtilityProcessHost::Create( 88 UtilityProcessHost* UtilityProcessHost::Create(
89 UtilityProcessHostClient* client, 89 const scoped_refptr<UtilityProcessHostClient>& client,
90 base::SequencedTaskRunner* client_task_runner) { 90 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner) {
91 return new UtilityProcessHostImpl(client, client_task_runner); 91 return new UtilityProcessHostImpl(client, client_task_runner);
92 } 92 }
93 93
94 void UtilityProcessHostImpl::RegisterUtilityMainThreadFactory( 94 void UtilityProcessHostImpl::RegisterUtilityMainThreadFactory(
95 UtilityMainThreadFactoryFunction create) { 95 UtilityMainThreadFactoryFunction create) {
96 g_utility_main_thread_factory = create; 96 g_utility_main_thread_factory = create;
97 } 97 }
98 98
99 UtilityProcessHostImpl::UtilityProcessHostImpl( 99 UtilityProcessHostImpl::UtilityProcessHostImpl(
100 UtilityProcessHostClient* client, 100 const scoped_refptr<UtilityProcessHostClient>& client,
101 base::SequencedTaskRunner* client_task_runner) 101 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner)
102 : client_(client), 102 : client_(client),
103 client_task_runner_(client_task_runner), 103 client_task_runner_(client_task_runner),
104 is_batch_mode_(false), 104 is_batch_mode_(false),
105 is_mdns_enabled_(false), 105 is_mdns_enabled_(false),
106 no_sandbox_(false), 106 no_sandbox_(false),
107 run_elevated_(false), 107 run_elevated_(false),
108 #if defined(OS_LINUX) 108 #if defined(OS_LINUX)
109 child_flags_(ChildProcessHost::CHILD_ALLOW_SELF), 109 child_flags_(ChildProcessHost::CHILD_ALLOW_SELF),
110 #else 110 #else
111 child_flags_(ChildProcessHost::CHILD_NORMAL), 111 child_flags_(ChildProcessHost::CHILD_NORMAL),
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 if (!client_.get()) 295 if (!client_.get())
296 return; 296 return;
297 297
298 client_task_runner_->PostTask( 298 client_task_runner_->PostTask(
299 FROM_HERE, 299 FROM_HERE,
300 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(), 300 base::Bind(&UtilityProcessHostClient::OnProcessCrashed, client_.get(),
301 exit_code)); 301 exit_code));
302 } 302 }
303 303
304 } // namespace content 304 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/utility_process_host_impl.h ('k') | content/public/browser/utility_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698