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

Side by Side Diff: Source/core/xmlhttprequest/XMLHttpRequestProgressEvent.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Julien Chaffraix <jchaffraix@webkit.org>. All rights reser ved. 3 * Copyright (C) 2008 Julien Chaffraix <jchaffraix@webkit.org>. All rights reser ved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 static PassRefPtrWillBeRawPtr<XMLHttpRequestProgressEvent> create(const Atom icString& type, bool lengthComputable = false, unsigned long long loaded = 0, un signed long long total = 0) 45 static PassRefPtrWillBeRawPtr<XMLHttpRequestProgressEvent> create(const Atom icString& type, bool lengthComputable = false, unsigned long long loaded = 0, un signed long long total = 0)
46 { 46 {
47 return adoptRefWillBeNoop(new XMLHttpRequestProgressEvent(type, lengthCo mputable, loaded, total)); 47 return adoptRefWillBeNoop(new XMLHttpRequestProgressEvent(type, lengthCo mputable, loaded, total));
48 } 48 }
49 49
50 // Those 2 synonyms are included for compatibility with Firefox. 50 // Those 2 synonyms are included for compatibility with Firefox.
51 unsigned long long position() const { return loaded(); } 51 unsigned long long position() const { return loaded(); }
52 unsigned long long totalSize() const { return total(); } 52 unsigned long long totalSize() const { return total(); }
53 53
54 virtual const AtomicString& interfaceName() const override { return EventNam es::XMLHttpRequestProgressEvent; } 54 const AtomicString& interfaceName() const override { return EventNames::XMLH ttpRequestProgressEvent; }
55 55
56 DEFINE_INLINE_VIRTUAL_TRACE() { ProgressEvent::trace(visitor); } 56 DEFINE_INLINE_VIRTUAL_TRACE() { ProgressEvent::trace(visitor); }
57 57
58 private: 58 private:
59 XMLHttpRequestProgressEvent() { } 59 XMLHttpRequestProgressEvent() { }
60 60
61 XMLHttpRequestProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total) 61 XMLHttpRequestProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total)
62 : ProgressEvent(type, lengthComputable, loaded, total) { } 62 : ProgressEvent(type, lengthComputable, loaded, total) { }
63 }; 63 };
64 64
65 } // namespace blink 65 } // namespace blink
66 66
67 #endif // XMLHttpRequestProgressEvent_h 67 #endif // XMLHttpRequestProgressEvent_h
OLDNEW
« no previous file with comments | « Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | Source/core/xmlhttprequest/XMLHttpRequestProgressEventThrottle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698