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

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: 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 554
553 // To understand how these concepts relate to one another, please see the 555 // To understand how these concepts relate to one another, please see the
554 // comments surrounding their declaration. 556 // comments surrounding their declaration.
555 const KURL& baseURL() const { return m_baseURL; } 557 const KURL& baseURL() const { return m_baseURL; }
556 void setBaseURLOverride(const KURL&); 558 void setBaseURLOverride(const KURL&);
557 const KURL& baseURLOverride() const { return m_baseURLOverride; } 559 const KURL& baseURLOverride() const { return m_baseURLOverride; }
558 const KURL& baseElementURL() const { return m_baseElementURL; } 560 const KURL& baseElementURL() const { return m_baseElementURL; }
559 const AtomicString& baseTarget() const { return m_baseTarget; } 561 const AtomicString& baseTarget() const { return m_baseTarget; }
560 void processBaseElement(); 562 void processBaseElement();
561 563
564
arv (Not doing code reviews) 2014/02/11 16:36:10 remove extra empty line
562 KURL completeURL(const String&) const; 565 KURL completeURL(const String&) const;
563 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con st; 566 KURL completeURLWithOverride(const String&, const KURL& baseURLOverride) con st;
564 567
565 virtual String userAgent(const KURL&) const OVERRIDE FINAL; 568 virtual String userAgent(const KURL&) const OVERRIDE FINAL;
566 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL; 569 virtual void disableEval(const String& errorMessage) OVERRIDE FINAL;
567 570
568 bool canNavigate(Frame* targetFrame); 571 bool canNavigate(Frame* targetFrame);
569 Frame* findUnsafeParentScrollPropagationBoundary(); 572 Frame* findUnsafeParentScrollPropagationBoundary();
570 573
571 CSSStyleSheet* elementSheet(); 574 CSSStyleSheet* elementSheet();
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 1166
1164 // Document URLs. 1167 // Document URLs.
1165 KURL m_url; // Document.URL: The URL from which this document was retrieved. 1168 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 . 1169 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). 1170 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. 1171 KURL m_baseElementURL; // The URL set by the <base> element.
1169 KURL m_cookieURL; // The URL to use for cookie access. 1172 KURL m_cookieURL; // The URL to use for cookie access.
1170 1173
1171 AtomicString m_baseTarget; 1174 AtomicString m_baseTarget;
1172 1175
1176 // 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
1177 AtomicString m_mimeType;
1178
1173 RefPtr<DocumentType> m_docType; 1179 RefPtr<DocumentType> m_docType;
1174 OwnPtr<DOMImplementation> m_implementation; 1180 OwnPtr<DOMImplementation> m_implementation;
1175 1181
1176 RefPtr<CSSStyleSheet> m_elemSheet; 1182 RefPtr<CSSStyleSheet> m_elemSheet;
1177 1183
1178 bool m_printing; 1184 bool m_printing;
1179 bool m_paginatedForScreen; 1185 bool m_paginatedForScreen;
1180 1186
1181 CompatibilityMode m_compatibilityMode; 1187 CompatibilityMode m_compatibilityMode;
1182 bool m_compatibilityModeLocked; // This is cheaper than making setCompatibil ityMode virtual. 1188 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 1397 inline bool Node::isDocumentNode() const
1392 { 1398 {
1393 return this == document(); 1399 return this == document();
1394 } 1400 }
1395 1401
1396 Node* eventTargetNodeForDocument(Document*); 1402 Node* eventTargetNodeForDocument(Document*);
1397 1403
1398 } // namespace WebCore 1404 } // namespace WebCore
1399 1405
1400 #endif // Document_h 1406 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698