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

Side by Side Diff: Source/core/xmlhttprequest/XMLHttpRequestUpload.h

Issue 1229743005: Fix virtual/override/final usage in Source/core/{fetch,loader,streams,xmlhttprequest}/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h ('k') | no next file » | 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 return adoptPtrWillBeNoop(new XMLHttpRequestUpload(xmlHttpRequest)); 47 return adoptPtrWillBeNoop(new XMLHttpRequestUpload(xmlHttpRequest));
48 } 48 }
49 49
50 #if !ENABLE(OILPAN) 50 #if !ENABLE(OILPAN)
51 void ref() { m_xmlHttpRequest->ref(); } 51 void ref() { m_xmlHttpRequest->ref(); }
52 void deref() { m_xmlHttpRequest->deref(); } 52 void deref() { m_xmlHttpRequest->deref(); }
53 #endif 53 #endif
54 54
55 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; } 55 XMLHttpRequest* xmlHttpRequest() const { return m_xmlHttpRequest; }
56 56
57 virtual const AtomicString& interfaceName() const override; 57 const AtomicString& interfaceName() const override;
58 virtual ExecutionContext* executionContext() const override; 58 ExecutionContext* executionContext() const override;
59 59
60 void dispatchEventAndLoadEnd(const AtomicString&, bool, unsigned long long, unsigned long long); 60 void dispatchEventAndLoadEnd(const AtomicString&, bool, unsigned long long, unsigned long long);
61 void dispatchProgressEvent(unsigned long long, unsigned long long); 61 void dispatchProgressEvent(unsigned long long, unsigned long long);
62 62
63 void handleRequestError(const AtomicString&); 63 void handleRequestError(const AtomicString&);
64 64
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 private: 67 private:
68 explicit XMLHttpRequestUpload(XMLHttpRequest*); 68 explicit XMLHttpRequestUpload(XMLHttpRequest*);
69 69
70 #if !ENABLE(OILPAN) 70 #if !ENABLE(OILPAN)
71 virtual void refEventTarget() override { ref(); } 71 void refEventTarget() override { ref(); }
72 virtual void derefEventTarget() override { deref(); } 72 void derefEventTarget() override { deref(); }
73 #endif 73 #endif
74 74
75 RawPtrWillBeMember<XMLHttpRequest> m_xmlHttpRequest; 75 RawPtrWillBeMember<XMLHttpRequest> m_xmlHttpRequest;
76 76
77 // Last progress event values; used when issuing the 77 // Last progress event values; used when issuing the
78 // required 'progress' event on a request error or abort. 78 // required 'progress' event on a request error or abort.
79 unsigned long long m_lastBytesSent; 79 unsigned long long m_lastBytesSent;
80 unsigned long long m_lastTotalBytesToBeSent; 80 unsigned long long m_lastTotalBytesToBeSent;
81 }; 81 };
82 82
83 } // namespace blink 83 } // namespace blink
84 84
85 #endif // XMLHttpRequestUpload_h 85 #endif // XMLHttpRequestUpload_h
OLDNEW
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698