Expose outgoingReferrer() to WebDocument.

This CL exposes the outgoingReferrer() method on the public WebDocument
interface. This allows Chromium to access a page's outgoing referrer
(stripped of undesirable information) via WebDocument.

BUG=522734

Review URL: https://codereview.chromium.org/1289343006

git-svn-id: svn://svn.chromium.org/blink/trunk@200946 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7cc0f9c4
......@@ -262,6 +262,11 @@ WebReferrerPolicy WebDocument::referrerPolicy() const
return static_cast<WebReferrerPolicy>(constUnwrap<Document>()->referrerPolicy());
}
WebString WebDocument::outgoingReferrer()
{
return WebString(unwrap<Document>()->outgoingReferrer());
}
WebElement WebDocument::createElement(const WebString& tagName)
{
TrackExceptionState exceptionState;
......
......@@ -112,6 +112,7 @@ public:
BLINK_EXPORT WebElement fullScreenElement() const;
BLINK_EXPORT WebDOMEvent createEvent(const WebString& eventType);
BLINK_EXPORT WebReferrerPolicy referrerPolicy() const;
BLINK_EXPORT WebString outgoingReferrer();
BLINK_EXPORT WebElement createElement(const WebString& tagName);
// Accessibility support. These methods should only be called on the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment