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

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

Issue 98603007: Launches a privileged utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds the elevation flag to the utility process. Created 6 years, 10 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
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin_process_host.h" 5 #include "content/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 } 238 }
239 } 239 }
240 env[kDYLDInsertLibrariesKey] = interpose_list; 240 env[kDYLDInsertLibrariesKey] = interpose_list;
241 } 241 }
242 #endif 242 #endif
243 #endif 243 #endif
244 244
245 process_->Launch( 245 process_->Launch(
246 #if defined(OS_WIN) 246 #if defined(OS_WIN)
247 new PluginSandboxedProcessLauncherDelegate, 247 new PluginSandboxedProcessLauncherDelegate,
248 false,
248 #elif defined(OS_POSIX) 249 #elif defined(OS_POSIX)
249 false, 250 false,
250 env, 251 env,
251 #endif 252 #endif
252 cmd_line); 253 cmd_line);
253 254
254 // The plugin needs to be shutdown gracefully, i.e. NP_Shutdown needs to be 255 // The plugin needs to be shutdown gracefully, i.e. NP_Shutdown needs to be
255 // called on the plugin. The plugin process exits when it receives the 256 // called on the plugin. The plugin process exits when it receives the
256 // OnChannelError notification indicating that the browser plugin channel has 257 // OnChannelError notification indicating that the browser plugin channel has
257 // been destroyed. 258 // been destroyed.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 426
426 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request, 427 void PluginProcessHost::GetContexts(const ResourceHostMsg_Request& request,
427 ResourceContext** resource_context, 428 ResourceContext** resource_context,
428 net::URLRequestContext** request_context) { 429 net::URLRequestContext** request_context) {
429 *resource_context = 430 *resource_context =
430 resource_context_map_[request.origin_pid].resource_context; 431 resource_context_map_[request.origin_pid].resource_context;
431 *request_context = (*resource_context)->GetRequestContext(); 432 *request_context = (*resource_context)->GetRequestContext();
432 } 433 }
433 434
434 } // namespace content 435 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/gpu/gpu_process_host.cc ('k') | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698