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

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

Issue 758913002: Implement the 'document.origin' accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test. Created 6 years, 1 month 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 119604a46bb0ad5899fecf0905764c7d81466f73..b09e5b642f776699c154c998ad542c5f9f86e30b 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -349,6 +349,8 @@ public:
virtual KURL baseURI() const override final;
+ String origin() const { return securityOrigin()->toString(); }
mlamouri (slow - plz ping) 2014/11/25 14:37:50 nit: could that be implemented in the cpp file and
+
String visibilityState() const;
bool hidden() const;
void didChangeVisibilityState();

Powered by Google App Engine
This is Rietveld 408576698