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

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: rebase and fixing tests on windows Created 6 years, 8 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
« no previous file with comments | « LayoutTests/resources/js-test.js ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 AtomicString charset() const { return Document::encodingName(); } 346 AtomicString charset() const { return Document::encodingName(); }
347 AtomicString characterSet() const { return Document::encodingName(); } 347 AtomicString characterSet() const { return Document::encodingName(); }
348 348
349 AtomicString encodingName() const; 349 AtomicString encodingName() const;
350 350
351 void setCharset(const String&); 351 void setCharset(const String&);
352 352
353 void setContent(const String&); 353 void setContent(const String&);
354 354
355 String suggestedMIMEType() const; 355 String suggestedMIMEType() const;
356 void setMimeType(const AtomicString&);
357 AtomicString contentType() const; // DOM 4 document.contentType
356 358
357 const AtomicString& contentLanguage() const { return m_contentLanguage; } 359 const AtomicString& contentLanguage() const { return m_contentLanguage; }
358 void setContentLanguage(const AtomicString&); 360 void setContentLanguage(const AtomicString&);
359 361
360 String xmlEncoding() const { return m_xmlEncoding; } 362 String xmlEncoding() const { return m_xmlEncoding; }
361 String xmlVersion() const { return m_xmlVersion; } 363 String xmlVersion() const { return m_xmlVersion; }
362 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone }; 364 enum StandaloneStatus { StandaloneUnspecified, Standalone, NotStandalone };
363 bool xmlStandalone() const { return m_xmlStandalone == Standalone; } 365 bool xmlStandalone() const { return m_xmlStandalone == Standalone; }
364 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone Status>(m_xmlStandalone); } 366 StandaloneStatus xmlStandaloneStatus() const { return static_cast<Standalone Status>(m_xmlStandalone); }
365 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; } 367 bool hasXMLDeclaration() const { return m_hasXMLDeclaration; }
(...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 1180
1179 // Document URLs. 1181 // Document URLs.
1180 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1182 KURL m_url; // Document.URL: The URL from which this document was retrieved.
1181 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs . 1183 KURL m_baseURL; // Node.baseURI: The URL to use when resolving relative URLs .
1182 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove r m_baseURL (but not m_baseElementURL). 1184 KURL m_baseURLOverride; // An alternative base URL that takes precedence ove r m_baseURL (but not m_baseElementURL).
1183 KURL m_baseElementURL; // The URL set by the <base> element. 1185 KURL m_baseElementURL; // The URL set by the <base> element.
1184 KURL m_cookieURL; // The URL to use for cookie access. 1186 KURL m_cookieURL; // The URL to use for cookie access.
1185 1187
1186 AtomicString m_baseTarget; 1188 AtomicString m_baseTarget;
1187 1189
1190 // Mime-type of the document in case it was cloned or created by XHR.
1191 AtomicString m_mimeType;
1192
1188 RefPtr<DocumentType> m_docType; 1193 RefPtr<DocumentType> m_docType;
1189 OwnPtr<DOMImplementation> m_implementation; 1194 OwnPtr<DOMImplementation> m_implementation;
1190 1195
1191 RefPtrWillBePersistent<CSSStyleSheet> m_elemSheet; 1196 RefPtrWillBePersistent<CSSStyleSheet> m_elemSheet;
1192 1197
1193 bool m_printing; 1198 bool m_printing;
1194 bool m_paginatedForScreen; 1199 bool m_paginatedForScreen;
1195 1200
1196 CompatibilityMode m_compatibilityMode; 1201 CompatibilityMode m_compatibilityMode;
1197 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual. 1202 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual.
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
1407 inline bool Node::isDocumentNode() const 1412 inline bool Node::isDocumentNode() const
1408 { 1413 {
1409 return this == document(); 1414 return this == document();
1410 } 1415 }
1411 1416
1412 Node* eventTargetNodeForDocument(Document*); 1417 Node* eventTargetNodeForDocument(Document*);
1413 1418
1414 } // namespace WebCore 1419 } // namespace WebCore
1415 1420
1416 #endif // Document_h 1421 #endif // Document_h
OLDNEW
« 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