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

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp

Issue 2746333002: DevTools: move recurring flag into AsyncTask, control cancelation from embedder only. (Closed)
Patch Set: using _END now Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp
index 18229231dd7659f8013f0480cb231afec923cdb9..3656dcd9e7d236e56ea85b95c636a57dcfb500c6 100644
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequestUpload.cpp
@@ -52,7 +52,7 @@ void XMLHttpRequestUpload::dispatchProgressEvent(
m_lastBytesSent = bytesSent;
m_lastTotalBytesToBeSent = totalBytesToBeSent;
probe::AsyncTask asyncTask(getExecutionContext(), m_xmlHttpRequest,
- m_xmlHttpRequest->isAsync());
+ "progress", m_xmlHttpRequest->isAsync());
dispatchEvent(ProgressEvent::create(EventTypeNames::progress, true, bytesSent,
totalBytesToBeSent));
}
@@ -63,7 +63,7 @@ void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type,
unsigned long long total) {
DCHECK(type == EventTypeNames::load || type == EventTypeNames::abort ||
type == EventTypeNames::error || type == EventTypeNames::timeout);
- probe::AsyncTask asyncTask(getExecutionContext(), m_xmlHttpRequest,
+ probe::AsyncTask asyncTask(getExecutionContext(), m_xmlHttpRequest, "event",
m_xmlHttpRequest->isAsync());
dispatchEvent(
ProgressEvent::create(type, lengthComputable, bytesSent, total));
@@ -74,7 +74,7 @@ void XMLHttpRequestUpload::dispatchEventAndLoadEnd(const AtomicString& type,
void XMLHttpRequestUpload::handleRequestError(const AtomicString& type) {
bool lengthComputable = m_lastTotalBytesToBeSent > 0 &&
m_lastBytesSent <= m_lastTotalBytesToBeSent;
- probe::AsyncTask asyncTask(getExecutionContext(), m_xmlHttpRequest,
+ probe::AsyncTask asyncTask(getExecutionContext(), m_xmlHttpRequest, "error",
m_xmlHttpRequest->isAsync());
dispatchEvent(ProgressEvent::create(EventTypeNames::progress,
lengthComputable, m_lastBytesSent,

Powered by Google App Engine
This is Rietveld 408576698