Add CefBrowserProcessHandler::OnBeforeChildProcessLaunch and CefCommandLine::PrependWrapper to support custom construction of the command line for child processes (issue #628).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@810 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-09-27 17:07:31 +00:00
parent cc3b8c9cf3
commit 8957947cff
13 changed files with 127 additions and 0 deletions

View File

@ -375,6 +375,23 @@ void CEF_CALLBACK command_line_append_argument(struct _cef_command_line_t* self,
CefString(argument));
}
void CEF_CALLBACK command_line_prepend_wrapper(struct _cef_command_line_t* self,
const cef_string_t* wrapper) {
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return;
// Verify param: wrapper; type: string_byref_const
DCHECK(wrapper);
if (!wrapper)
return;
// Execute
CefCommandLineCppToC::Get(self)->PrependWrapper(
CefString(wrapper));
}
// CONSTRUCTOR - Do not edit by hand.
@ -401,6 +418,7 @@ CefCommandLineCppToC::CefCommandLineCppToC(CefCommandLine* cls)
struct_.struct_.has_arguments = command_line_has_arguments;
struct_.struct_.get_arguments = command_line_get_arguments;
struct_.struct_.append_argument = command_line_append_argument;
struct_.struct_.prepend_wrapper = command_line_prepend_wrapper;
}
#ifndef NDEBUG