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

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: rebase and fixing tests on windows Created 6 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
« no previous file with comments | « LayoutTests/resources/js-test.js ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.h
diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
index 0cfd6712f3b22b0ea5b416b9d4c44deea5559b68..4c752e2cabba2458eb485bb28edc54d037a74e0f 100644
--- a/Source/core/dom/Document.h
+++ b/Source/core/dom/Document.h
@@ -353,6 +353,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&);
@@ -1185,6 +1187,9 @@ private:
AtomicString m_baseTarget;
+ // Mime-type of the document in case it was cloned or created by XHR.
+ AtomicString m_mimeType;
+
RefPtr<DocumentType> m_docType;
OwnPtr<DOMImplementation> m_implementation;
« no previous file with comments | « LayoutTests/resources/js-test.js ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698