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

Side by Side Diff: Source/core/dom/Document.h

Issue 151653004: Implemented Document.contentType (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review comments 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 AtomicString charset() const { return Document::encodingName(); } 352 AtomicString charset() const { return Document::encodingName(); }
353 AtomicString characterSet() const { return Document::encodingName(); } 353 AtomicString characterSet() const { return Document::encodingName(); }
354 354
355 AtomicString encodingName() const; 355 AtomicString encodingName() const;
356 356
357 void setCharset(const String&); 357 void setCharset(const String&);
358 358
359 void setContent(const String&); 359 void setContent(const String&);
360 360
361 String suggestedMIMEType() const; 361 String suggestedMIMEType() const;
362 void setMimeType(const AtomicString&);
363 AtomicString contentType() const; // DOM 4 document.contentType
362 364
363 const AtomicString& contentLanguage() const { return m_contentLanguage; } 365 const AtomicString& contentLanguage() const { return m_contentLanguage; }
364 void setContentLanguage(const AtomicString&); 366 void setContentLanguage(const AtomicString&);
365 367
366 String xmlEncoding() const { return m_xmlEncoding; } 368 String xmlEncoding() const { return m_xmlEncoding; }
367 String xmlVersion() const { return m_xmlVersion; } 369 String xmlVersion() const { return m_xmlVersion; }
368 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; 370 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone };
369 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } 371 bool xmlStandalone() const { return m_xmlStandalone == Standalone; }
370 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone Status>(m_xmlStandalone); } 372 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone Status>(m_xmlStandalone); }
371 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } 373 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; }
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 1165
1164 // Document URLs. 1166 // Document URLs.
1165 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1167 KURL m_url; // Document.URL: The URL from which this document was retrieved.
1166 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs . 1168 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs .
1167 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove r m_baseURL (but not m_baseElementURL). 1169 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove r m_baseURL (but not m_baseElementURL).
1168 KURL m_baseElementURL; // The URL set by the <base> element. 1170 KURL m_baseElementURL; // The URL set by the <base> element.
1169 KURL m_cookieURL; // The URL to use for cookie access. 1171 KURL m_cookieURL; // The URL to use for cookie access.
1170 1172
1171 AtomicString m_baseTarget; 1173 AtomicString m_baseTarget;
1172 1174
1175 // Mime-type of the document in case it was cloned or created by XHR.
1176 AtomicString m_mimeType;
1177
1173 RefPtr<DocumentType> m_docType; 1178 RefPtr<DocumentType> m_docType;
1174 OwnPtr<DOMImplementation> m_implementation; 1179 OwnPtr<DOMImplementation> m_implementation;
1175 1180
1176 RefPtr<CSSStyleSheet> m_elemSheet; 1181 RefPtr<CSSStyleSheet> m_elemSheet;
1177 1182
1178 bool m_printing; 1183 bool m_printing;
1179 bool m_paginatedForScreen; 1184 bool m_paginatedForScreen;
1180 1185
1181 CompatibilityMode m_compatibilityMode; 1186 CompatibilityMode m_compatibilityMode;
1182 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual. 1187 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual.
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 inline bool Node::isDocumentNode() const 1396 inline bool Node::isDocumentNode() const
1392 { 1397 {
1393 return this == document(); 1398 return this == document();
1394 } 1399 }
1395 1400
1396 Node* eventTargetNodeForDocument(Document*); 1401 Node* eventTargetNodeForDocument(Document*);
1397 1402
1398 } // namespace WebCore 1403 } // namespace WebCore
1399 1404
1400 #endif // Document_h 1405 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698