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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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/XMLHttpRequestProgressEvent.h ('k') | Source/core/xml/XMLSerializer.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) 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 20 matching lines...) Expand all
31 #include "wtf/Assertions.h" 31 #include "wtf/Assertions.h"
32 #include "wtf/text/AtomicString.h" 32 #include "wtf/text/AtomicString.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest) 36 XMLHttpRequestUpload::XMLHttpRequestUpload(XMLHttpRequest* xmlHttpRequest)
37 : m_xmlHttpRequest(xmlHttpRequest) 37 : m_xmlHttpRequest(xmlHttpRequest)
38 , m_lastBytesSent(0) 38 , m_lastBytesSent(0)
39 , m_lastTotalBytesToBeSent(0) 39 , m_lastTotalBytesToBeSent(0)
40 { 40 {
41 ScriptWrappable::init(this);
42 } 41 }
43 42
44 const AtomicString& XMLHttpRequestUpload::interfaceName() const 43 const AtomicString& XMLHttpRequestUpload::interfaceName() const
45 { 44 {
46 return EventTargetNames::XMLHttpRequestUpload; 45 return EventTargetNames::XMLHttpRequestUpload;
47 } 46 }
48 47
49 ExecutionContext* XMLHttpRequestUpload::executionContext() const 48 ExecutionContext* XMLHttpRequestUpload::executionContext() const
50 { 49 {
51 return m_xmlHttpRequest->executionContext(); 50 return m_xmlHttpRequest->executionContext();
(...skipping 20 matching lines...) Expand all
72 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal BytesToBeSent); 71 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal BytesToBeSent);
73 } 72 }
74 73
75 void XMLHttpRequestUpload::trace(Visitor* visitor) 74 void XMLHttpRequestUpload::trace(Visitor* visitor)
76 { 75 {
77 visitor->trace(m_xmlHttpRequest); 76 visitor->trace(m_xmlHttpRequest);
78 XMLHttpRequestEventTarget::trace(visitor); 77 XMLHttpRequestEventTarget::trace(visitor);
79 } 78 }
80 79
81 } // namespace blink 80 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/xml/XMLHttpRequestProgressEvent.h ('k') | Source/core/xml/XMLSerializer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698