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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 2754933004: Set default document urls to 'about:blank'. (Closed)
Patch Set: Added comments, put impl in .cpp. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index ea9df469f02ccd75c7b6316efdc13354607fdc46..d1b6a34ec474491bfe57b4010821a1c43799e9eb 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -595,9 +595,13 @@ class CORE_EXPORT Document : public ContainerNode,
bool wellFormed() const { return m_wellFormed; }
+ // Get the URL that was used to retrieve this document.
tkent 2017/03/22 08:36:27 We are not sure if we should remove it or not. So
const KURL& url() const { return m_url; }
void setURL(const KURL&);
+ // Bind the url to document.url, if unavailable bind to about:blank.
+ KURL urlForBinding();
+
// To understand how these concepts relate to one another, please see the
// comments surrounding their declaration.
const KURL& baseURL() const { return m_baseURL; }

Powered by Google App Engine
This is Rietveld 408576698