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

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

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XMLHttpRequest.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) 2003, 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com> 3 * Copyright (C) 2005, 2006 Alexey Proskuryakov <ap@nypop.com>
4 * Copyright (C) 2011 Google Inc. All rights reserved. 4 * Copyright (C) 2011 Google Inc. All rights reserved.
5 * Copyright (C) 2012 Intel Corporation 5 * Copyright (C) 2012 Intel Corporation
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 class TextResourceDecoder; 52 class TextResourceDecoder;
53 class ThreadableLoader; 53 class ThreadableLoader;
54 54
55 typedef int ExceptionCode; 55 typedef int ExceptionCode;
56 56
57 class XMLHttpRequest FINAL : public RefCountedWillBeRefCountedGarbageCollected<X MLHttpRequest>, public ScriptWrappable, public XMLHttpRequestEventTarget, privat e ThreadableLoaderClient, public ActiveDOMObject { 57 class XMLHttpRequest FINAL : public RefCountedWillBeRefCountedGarbageCollected<X MLHttpRequest>, public ScriptWrappable, public XMLHttpRequestEventTarget, privat e ThreadableLoaderClient, public ActiveDOMObject {
58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; 58 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
59 DECLARE_GC_INFO; 59 DECLARE_GC_INFO;
60 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<X MLHttpRequest>); 60 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<X MLHttpRequest>);
61 public: 61 public:
62 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass RefPtr<SecurityOrigin> = 0); 62 static PassRefPtrWillBeRawPtr<XMLHttpRequest> create(ExecutionContext*, Pass RefPtr<SecurityOrigin> = nullptr);
63 virtual ~XMLHttpRequest(); 63 virtual ~XMLHttpRequest();
64 64
65 // These exact numeric values are important because JS expects them. 65 // These exact numeric values are important because JS expects them.
66 enum State { 66 enum State {
67 UNSENT = 0, 67 UNSENT = 0,
68 OPENED = 1, 68 OPENED = 1,
69 HEADERS_RECEIVED = 2, 69 HEADERS_RECEIVED = 2,
70 LOADING = 3, 70 LOADING = 3,
71 DONE = 4 71 DONE = 4
72 }; 72 };
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 265
266 // An enum corresponding to the allowed string values for the responseType a ttribute. 266 // An enum corresponding to the allowed string values for the responseType a ttribute.
267 ResponseTypeCode m_responseTypeCode; 267 ResponseTypeCode m_responseTypeCode;
268 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner; 268 AsyncMethodRunner<XMLHttpRequest> m_dropProtectionRunner;
269 RefPtr<SecurityOrigin> m_securityOrigin; 269 RefPtr<SecurityOrigin> m_securityOrigin;
270 }; 270 };
271 271
272 } // namespace WebCore 272 } // namespace WebCore
273 273
274 #endif // XMLHttpRequest_h 274 #endif // XMLHttpRequest_h
OLDNEW
« no previous file with comments | « Source/core/xml/DOMParser.cpp ('k') | Source/core/xml/XMLHttpRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698