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

Side by Side Diff: Source/core/xml/XMLHttpRequest.cpp

Issue 124003003: Add ascii() / latin1() / utf8() methods to AtomicString to avoid having to call string() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « Source/core/loader/ProgressTracker.cpp ('k') | Source/modules/indexeddb/IDBRequest.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) 2004, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org> 3 * Copyright (C) 2005-2007 Alexey Proskuryakov <ap@webkit.org>
4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org> 4 * Copyright (C) 2007, 2008 Julien Chaffraix <jchaffraix@webkit.org>
5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved. 5 * Copyright (C) 2008, 2011 Google Inc. All rights reserved.
6 * Copyright (C) 2012 Intel Corporation 6 * Copyright (C) 2012 Intel Corporation
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
510 && !name.startsWith(staticData->m_secHeaderPrefix, false); 510 && !name.startsWith(staticData->m_secHeaderPrefix, false);
511 } 511 }
512 512
513 void XMLHttpRequest::open(const AtomicString& method, const KURL& url, Exception State& exceptionState) 513 void XMLHttpRequest::open(const AtomicString& method, const KURL& url, Exception State& exceptionState)
514 { 514 {
515 open(method, url, true, exceptionState); 515 open(method, url, true, exceptionState);
516 } 516 }
517 517
518 void XMLHttpRequest::open(const AtomicString& method, const KURL& url, bool asyn c, ExceptionState& exceptionState) 518 void XMLHttpRequest::open(const AtomicString& method, const KURL& url, bool asyn c, ExceptionState& exceptionState)
519 { 519 {
520 WTF_LOG(Network, "XMLHttpRequest %p open('%s', '%s', %d)", this, method.stri ng().utf8().data(), url.elidedString().utf8().data(), async); 520 WTF_LOG(Network, "XMLHttpRequest %p open('%s', '%s', %d)", this, method.utf8 ().data(), url.elidedString().utf8().data(), async);
521 521
522 if (!internalAbort()) 522 if (!internalAbort())
523 return; 523 return;
524 524
525 State previousState = m_state; 525 State previousState = m_state;
526 m_state = UNSENT; 526 m_state = UNSENT;
527 m_error = false; 527 m_error = false;
528 m_uploadComplete = false; 528 m_uploadComplete = false;
529 529
530 // clear stuff from possible previous load 530 // clear stuff from possible previous load
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after
1423 { 1423 {
1424 return EventTargetNames::XMLHttpRequest; 1424 return EventTargetNames::XMLHttpRequest;
1425 } 1425 }
1426 1426
1427 ExecutionContext* XMLHttpRequest::executionContext() const 1427 ExecutionContext* XMLHttpRequest::executionContext() const
1428 { 1428 {
1429 return ActiveDOMObject::executionContext(); 1429 return ActiveDOMObject::executionContext();
1430 } 1430 }
1431 1431
1432 } // namespace WebCore 1432 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/loader/ProgressTracker.cpp ('k') | Source/modules/indexeddb/IDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698