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

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

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/timing/Performance.h ('k') | Source/heap/Handle.h » ('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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 { 148 {
149 if (!context) 149 if (!context)
150 return; 150 return;
151 // FIXME: It's not good to report the bad usage without indicating what sour ce line it came from. 151 // FIXME: It's not good to report the bad usage without indicating what sour ce line it came from.
152 // We should pass additional parameters so we can tell the console where the mistake occurred. 152 // We should pass additional parameters so we can tell the console where the mistake occurred.
153 context->addConsoleMessage(JSMessageSource, ErrorMessageLevel, message); 153 context->addConsoleMessage(JSMessageSource, ErrorMessageLevel, message);
154 } 154 }
155 155
156 PassRefPtrWillBeRawPtr<XMLHttpRequest> XMLHttpRequest::create(ExecutionContext* context, PassRefPtr<SecurityOrigin> securityOrigin) 156 PassRefPtrWillBeRawPtr<XMLHttpRequest> XMLHttpRequest::create(ExecutionContext* context, PassRefPtr<SecurityOrigin> securityOrigin)
157 { 157 {
158 RefPtrWillBeRawPtr<XMLHttpRequest> xmlHttpRequest = adoptRefCountedWillBeRef CountedGarbageCollected(new XMLHttpRequest(context, securityOrigin)); 158 RefPtrWillBeRawPtr<XMLHttpRequest> xmlHttpRequest = adoptRefWillBeRefCounted GarbageCollected(new XMLHttpRequest(context, securityOrigin));
159 xmlHttpRequest->suspendIfNeeded(); 159 xmlHttpRequest->suspendIfNeeded();
160 160
161 return xmlHttpRequest.release(); 161 return xmlHttpRequest.release();
162 } 162 }
163 163
164 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri gin> securityOrigin) 164 XMLHttpRequest::XMLHttpRequest(ExecutionContext* context, PassRefPtr<SecurityOri gin> securityOrigin)
165 : ActiveDOMObject(context) 165 : ActiveDOMObject(context)
166 , m_async(true) 166 , m_async(true)
167 , m_includeCredentials(false) 167 , m_includeCredentials(false)
168 , m_timeoutMilliseconds(0) 168 , m_timeoutMilliseconds(0)
(...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after
1421 { 1421 {
1422 return EventTargetNames::XMLHttpRequest; 1422 return EventTargetNames::XMLHttpRequest;
1423 } 1423 }
1424 1424
1425 ExecutionContext* XMLHttpRequest::executionContext() const 1425 ExecutionContext* XMLHttpRequest::executionContext() const
1426 { 1426 {
1427 return ActiveDOMObject::executionContext(); 1427 return ActiveDOMObject::executionContext();
1428 } 1428 }
1429 1429
1430 } // namespace WebCore 1430 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/timing/Performance.h ('k') | Source/heap/Handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698