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

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

Issue 18778002: Inherit EventTarget interface instead of duplicating its code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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
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 30 matching lines...) Expand all
41 41
42 class Blob; 42 class Blob;
43 class Document; 43 class Document;
44 class DOMFormData; 44 class DOMFormData;
45 class ResourceRequest; 45 class ResourceRequest;
46 class SecurityOrigin; 46 class SecurityOrigin;
47 class SharedBuffer; 47 class SharedBuffer;
48 class TextResourceDecoder; 48 class TextResourceDecoder;
49 class ThreadableLoader; 49 class ThreadableLoader;
50 50
51 class XMLHttpRequest : public ScriptWrappable, public RefCounted<XMLHttpRequest> , public EventTarget, private ThreadableLoaderClient, public ActiveDOMObject { 51 class XMLHttpRequest : public EventTarget, public ScriptWrappable, public RefCou nted<XMLHttpRequest>, private ThreadableLoaderClient, public ActiveDOMObject {
52 WTF_MAKE_FAST_ALLOCATED; 52 WTF_MAKE_FAST_ALLOCATED;
53 public: 53 public:
54 static PassRefPtr<XMLHttpRequest> create(ScriptExecutionContext*, PassRefPtr <SecurityOrigin> = 0); 54 static PassRefPtr<XMLHttpRequest> create(ScriptExecutionContext*, PassRefPtr <SecurityOrigin> = 0);
55 ~XMLHttpRequest(); 55 ~XMLHttpRequest();
56 56
57 // These exact numeric values are important because JS expects them. 57 // These exact numeric values are important because JS expects them.
58 enum State { 58 enum State {
59 UNSENT = 0, 59 UNSENT = 0,
60 OPENED = 1, 60 OPENED = 1,
61 HEADERS_RECEIVED = 2, 61 HEADERS_RECEIVED = 2,
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 236
237 // An enum corresponding to the allowed string values for the responseType a ttribute. 237 // An enum corresponding to the allowed string values for the responseType a ttribute.
238 ResponseTypeCode m_responseTypeCode; 238 ResponseTypeCode m_responseTypeCode;
239 Timer<XMLHttpRequest> m_protectionTimer; 239 Timer<XMLHttpRequest> m_protectionTimer;
240 RefPtr<SecurityOrigin> m_securityOrigin; 240 RefPtr<SecurityOrigin> m_securityOrigin;
241 }; 241 };
242 242
243 } // namespace WebCore 243 } // namespace WebCore
244 244
245 #endif // XMLHttpRequest_h 245 #endif // XMLHttpRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698