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

Side by Side Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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
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 26 matching lines...) Expand all
37 , m_lastBytesSent(0) 37 , m_lastBytesSent(0)
38 , m_lastTotalBytesToBeSent(0) 38 , m_lastTotalBytesToBeSent(0)
39 { 39 {
40 } 40 }
41 41
42 const AtomicString& XMLHttpRequestUpload::interfaceName() const 42 const AtomicString& XMLHttpRequestUpload::interfaceName() const
43 { 43 {
44 return EventTargetNames::XMLHttpRequestUpload; 44 return EventTargetNames::XMLHttpRequestUpload;
45 } 45 }
46 46
47 ExecutionContext* XMLHttpRequestUpload::executionContext() const 47 ExecutionContext* XMLHttpRequestUpload::getExecutionContext() const
48 { 48 {
49 return m_xmlHttpRequest->executionContext(); 49 return m_xmlHttpRequest->getExecutionContext();
50 } 50 }
51 51
52 void XMLHttpRequestUpload::dispatchProgressEvent(unsigned long long bytesSent, u nsigned long long totalBytesToBeSent) 52 void XMLHttpRequestUpload::dispatchProgressEvent(unsigned long long bytesSent, u nsigned long long totalBytesToBeSent)
53 { 53 {
54 m_lastBytesSent = bytesSent; 54 m_lastBytesSent = bytesSent;
55 m_lastTotalBytesToBeSent = totalBytesToBeSent; 55 m_lastTotalBytesToBeSent = totalBytesToBeSent;
56 dispatchEvent(ProgressEvent::create(EventTypeNames::progress, true, bytesSen t, totalBytesToBeSent)); 56 dispatchEvent(ProgressEvent::create(EventTypeNames::progress, true, bytesSen t, totalBytesToBeSent));
57 } 57 }
58 58
59 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type, boo l lengthComputable, unsigned long long bytesSent, unsigned long long total) 59 void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type, boo l lengthComputable, unsigned long long bytesSent, unsigned long long total)
(...skipping 10 matching lines...) Expand all
70 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal BytesToBeSent); 70 dispatchEventAndLoadEnd(type, lengthComputable, m_lastBytesSent, m_lastTotal BytesToBeSent);
71 } 71 }
72 72
73 DEFINE_TRACE(XMLHttpRequestUpload) 73 DEFINE_TRACE(XMLHttpRequestUpload)
74 { 74 {
75 visitor->trace(m_xmlHttpRequest); 75 visitor->trace(m_xmlHttpRequest);
76 XMLHttpRequestEventTarget::trace(visitor); 76 XMLHttpRequestEventTarget::trace(visitor);
77 } 77 }
78 78
79 } // namespace blink 79 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698