if (options.Get("userAgent", &user_agent))
SetUserAgent(user_agent);
+ std::string extra_headers;
+ if (options.Get("extraHeaders", &extra_headers))
+ params.extra_headers = extra_headers;
+
params.transition_type = ui::PAGE_TRANSITION_TYPED;
params.should_clear_history_list = true;
params.override_user_agent = content::NavigationController::UA_OVERRIDE_TRUE;
* `options` Object (optional), properties:
* `httpReferrer` String - A HTTP Referrer url.
* `userAgent` String - A user agent originating the request.
+ * `extraHeaders` String - Extra headers separated by "\n"
Loads the `url` in the window, the `url` must contain the protocol prefix,
e.g. the `http://` or `file://`.