OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 static XMLHttpRequestUpload* create(XMLHttpRequest* xmlHttpRequest) | 49 static XMLHttpRequestUpload* create(XMLHttpRequest* xmlHttpRequest) |
50 { | 50 { |
51 return new XMLHttpRequestUpload(xmlHttpRequest); | 51 return new XMLHttpRequestUpload(xmlHttpRequest); |
52 } | 52 } |
53 | 53 |
54 virtual void trace(Visitor* visitor) | 54 virtual void trace(Visitor* visitor) |
55 { | 55 { |
56 visitor->trace(m_xmlHttpRequest); | 56 visitor->trace(m_xmlHttpRequest); |
57 } | 57 } |
58 | 58 |
59 virtual void visitWith(Visitor* visitor) const OVERRIDE | 59 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
60 { | 60 { |
61 visitor->visit(this); | 61 visitor->mark(this); |
62 } | 62 } |
63 | 63 |
64 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; } | 64 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; } |
65 | 65 |
66 virtual const AtomicString& interfaceName() const; | 66 virtual const AtomicString& interfaceName() const; |
67 ScriptExecutionContext* scriptExecutionContext() const; | 67 ScriptExecutionContext* scriptExecutionContext() const; |
68 | 68 |
69 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); | 69 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); |
70 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); | 70 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); |
71 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); | 71 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); |
72 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadend); | 72 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadend); |
73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); | 73 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); |
74 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); | 74 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); |
75 | 75 |
76 void dispatchEventAndLoadEnd(PassRefPtr<Event>); | 76 void dispatchEventAndLoadEnd(PassRefPtr<Event>); |
77 | 77 |
78 private: | 78 private: |
79 explicit XMLHttpRequestUpload(XMLHttpRequest*); | 79 explicit XMLHttpRequestUpload(XMLHttpRequest*); |
80 | 80 |
81 virtual EventTargetData* eventTargetData(); | 81 virtual EventTargetData* eventTargetData(); |
82 virtual EventTargetData* ensureEventTargetData(); | 82 virtual EventTargetData* ensureEventTargetData(); |
83 | 83 |
84 Member<XMLHttpRequest> m_xmlHttpRequest; | 84 Member<XMLHttpRequest> m_xmlHttpRequest; |
85 EventTargetData m_eventTargetData; | 85 EventTargetData m_eventTargetData; |
86 }; | 86 }; |
87 | 87 |
88 } // namespace WebCore | 88 } // namespace WebCore |
89 | 89 |
90 #endif // XMLHttpRequestUpload_h | 90 #endif // XMLHttpRequestUpload_h |
OLD | NEW |