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

Side by Side Diff: third_party/WebKit/Source/core/loader/PingLoader.cpp

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 { 172 {
173 if (LocalFrame* frame = this->frame()) { 173 if (LocalFrame* frame = this->frame()) {
174 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_ SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true)) ; 174 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_ SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true)) ;
175 const ResourceResponse& resourceResponse = response.toResourceResponse() ; 175 const ResourceResponse& resourceResponse = response.toResourceResponse() ;
176 InspectorInstrumentation::didReceiveResourceResponse(frame, m_identifier , 0, resourceResponse, 0); 176 InspectorInstrumentation::didReceiveResourceResponse(frame, m_identifier , 0, resourceResponse, 0);
177 didFailLoading(frame); 177 didFailLoading(frame);
178 } 178 }
179 dispose(); 179 dispose();
180 } 180 }
181 181
182 void PingLoader::didReceiveData(WebURLLoader*, const char*, int, int) 182 void PingLoader::didReceiveData(WebURLLoader*, const char*, int, int, int)
183 { 183 {
184 if (LocalFrame* frame = this->frame()) { 184 if (LocalFrame* frame = this->frame()) {
185 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_ SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true)) ; 185 TRACE_EVENT_INSTANT1("devtools.timeline", "ResourceFinish", TRACE_EVENT_ SCOPE_THREAD, "data", InspectorResourceFinishEvent::data(m_identifier, 0, true)) ;
186 didFailLoading(frame); 186 didFailLoading(frame);
187 } 187 }
188 dispose(); 188 dispose();
189 } 189 }
190 190
191 void PingLoader::didFinishLoading(WebURLLoader*, double, int64_t) 191 void PingLoader::didFinishLoading(WebURLLoader*, double, int64_t)
192 { 192 {
(...skipping 27 matching lines...) Expand all
220 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError: :cancelledError(m_url)); 220 InspectorInstrumentation::didFailLoading(frame, m_identifier, ResourceError: :cancelledError(m_url));
221 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError( m_url)); 221 frame->console().didFailLoading(m_identifier, ResourceError::cancelledError( m_url));
222 } 222 }
223 223
224 DEFINE_TRACE(PingLoader) 224 DEFINE_TRACE(PingLoader)
225 { 225 {
226 LocalFrameLifecycleObserver::trace(visitor); 226 LocalFrameLifecycleObserver::trace(visitor);
227 } 227 }
228 228
229 } // namespace blink 229 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.h ('k') | third_party/WebKit/Source/core/timing/PerformanceResourceTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698