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

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

Issue 99733002: Update HTTPHeaderMap wrappers to use AtomicString type for header values (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase on master Created 7 years 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 | « Source/core/dom/Document.h ('k') | Source/core/fetch/CSSStyleSheetResource.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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 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) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 3725 matching lines...) Expand 10 before | Expand all | Expand 10 after
3736 return; 3736 return;
3737 } 3737 }
3738 3738
3739 KURL cookieURL = this->cookieURL(); 3739 KURL cookieURL = this->cookieURL();
3740 if (cookieURL.isEmpty()) 3740 if (cookieURL.isEmpty())
3741 return; 3741 return;
3742 3742
3743 setCookies(this, cookieURL, value); 3743 setCookies(this, cookieURL, value);
3744 } 3744 }
3745 3745
3746 String Document::referrer() const 3746 AtomicString Document::referrer() const
3747 { 3747 {
3748 if (loader()) 3748 if (loader())
3749 return loader()->request().httpReferrer(); 3749 return loader()->request().httpReferrer();
3750 return String(); 3750 return nullAtom;
3751 } 3751 }
3752 3752
3753 String Document::domain() const 3753 String Document::domain() const
3754 { 3754 {
3755 return securityOrigin()->domain(); 3755 return securityOrigin()->domain();
3756 } 3756 }
3757 3757
3758 void Document::setDomain(const String& newDomain, ExceptionState& exceptionState ) 3758 void Document::setDomain(const String& newDomain, ExceptionState& exceptionState )
3759 { 3759 {
3760 if (isSandboxed(SandboxDocumentDomain)) { 3760 if (isSandboxed(SandboxDocumentDomain)) {
(...skipping 1452 matching lines...) Expand 10 before | Expand all | Expand 10 after
5213 } 5213 }
5214 5214
5215 FastTextAutosizer* Document::fastTextAutosizer() 5215 FastTextAutosizer* Document::fastTextAutosizer()
5216 { 5216 {
5217 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d()) 5217 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable d())
5218 m_fastTextAutosizer = FastTextAutosizer::create(this); 5218 m_fastTextAutosizer = FastTextAutosizer::create(this);
5219 return m_fastTextAutosizer.get(); 5219 return m_fastTextAutosizer.get();
5220 } 5220 }
5221 5221
5222 } // namespace WebCore 5222 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/fetch/CSSStyleSheetResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698