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

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

Issue 151653004: Implemented Document.contentType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index ef537230494f44b52664a755b51eb2e6bb5cdd5d..e490e47b79794ececf7ad3378fe5ebaf8e9df0bb 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -359,6 +359,8 @@ public:
void setContent(const String&);
String suggestedMIMEType() const;
+ void setMimeType(const AtomicString&);
+ AtomicString contentType() const; // DOM 4 document.contentType
const AtomicString& contentLanguage() const { return m_contentLanguage; }
void setContentLanguage(const AtomicString&);
@@ -559,6 +561,7 @@ public:
const AtomicString& baseTarget() const { return m_baseTarget; }
void processBaseElement();
+
arv (Not doing code reviews) 2014/02/11 16:36:10 remove extra empty line
KURL completeURL(const String&) const;
KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) const;
@@ -1170,6 +1173,9 @@ private:
AtomicString m_baseTarget;
+ // Mime-type of the XHR response that created this document.
arv (Not doing code reviews) 2014/02/11 16:36:10 How is this related to XHR? Maybe remove comment a
+ AtomicString m_mimeType;
+
RefPtr<DocumentType> m_docType;
OwnPtr<DOMImplementation> m_implementation;

Powered by Google App Engine
This is Rietveld 408576698