public bool OnBeforeResourceLoad (IWebBrowser browser, IRequestResponse requestResponse)
{
// The collection returned here is a copy of the collection held by
// CEF, changing this collection will have no effect until the
// Request's Headers property is set.
var headers = requestResponse.Request.Headers;
headers["User-Agent"] = "My User Agent";
// Must set the headers back on the property, we get a copy of the
// headers above not a reference.
requestResponse.Request.Headers = headers;
// False means continue.
return false;
}