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

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

Issue 336553003: Change Page::m_mainFrame to be a Frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 6 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/loader/NavigationScheduler.cpp ('k') | Source/core/page/CreateWindow.cpp » ('j') | 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) 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 { 151 {
152 if (m_loader) 152 if (m_loader)
153 m_loader->cancel(); 153 m_loader->cancel();
154 } 154 }
155 155
156 void PingLoader::didReceiveResponse(blink::WebURLLoader*, const blink::WebURLRes ponse&) 156 void PingLoader::didReceiveResponse(blink::WebURLLoader*, const blink::WebURLRes ponse&)
157 { 157 {
158 if (Page* page = this->page()) { 158 if (Page* page = this->page()) {
159 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) ); 159 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) );
160 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing. 160 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing.
161 InspectorInstrumentation::didFailLoading(page->mainFrame(), m_identifier , ResourceError::cancelledError(m_url)); 161 InspectorInstrumentation::didFailLoading(page->deprecatedLocalMainFrame( ), m_identifier, ResourceError::cancelledError(m_url));
162 } 162 }
163 delete this; 163 delete this;
164 } 164 }
165 165
166 void PingLoader::didReceiveData(blink::WebURLLoader*, const char*, int, int) 166 void PingLoader::didReceiveData(blink::WebURLLoader*, const char*, int, int)
167 { 167 {
168 if (Page* page = this->page()) { 168 if (Page* page = this->page()) {
169 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) ); 169 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) );
170 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing. 170 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing.
171 InspectorInstrumentation::didFailLoading(page->mainFrame(), m_identifier , ResourceError::cancelledError(m_url)); 171 InspectorInstrumentation::didFailLoading(page->deprecatedLocalMainFrame( ), m_identifier, ResourceError::cancelledError(m_url));
172 } 172 }
173 delete this; 173 delete this;
174 } 174 }
175 175
176 void PingLoader::didFinishLoading(blink::WebURLLoader*, double, int64_t) 176 void PingLoader::didFinishLoading(blink::WebURLLoader*, double, int64_t)
177 { 177 {
178 if (Page* page = this->page()) { 178 if (Page* page = this->page()) {
179 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) ); 179 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) );
180 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing. 180 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing.
181 InspectorInstrumentation::didFailLoading(page->mainFrame(), m_identifier , ResourceError::cancelledError(m_url)); 181 InspectorInstrumentation::didFailLoading(page->deprecatedLocalMainFrame( ), m_identifier, ResourceError::cancelledError(m_url));
182 } 182 }
183 delete this; 183 delete this;
184 } 184 }
185 185
186 void PingLoader::didFail(blink::WebURLLoader*, const blink::WebURLError& resourc eError) 186 void PingLoader::didFail(blink::WebURLLoader*, const blink::WebURLError& resourc eError)
187 { 187 {
188 if (Page* page = this->page()) { 188 if (Page* page = this->page()) {
189 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) ); 189 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) );
190 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing. 190 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing.
191 InspectorInstrumentation::didFailLoading(page->mainFrame(), m_identifier , ResourceError(resourceError)); 191 InspectorInstrumentation::didFailLoading(page->deprecatedLocalMainFrame( ), m_identifier, ResourceError(resourceError));
192 } 192 }
193 delete this; 193 delete this;
194 } 194 }
195 195
196 void PingLoader::timeout(Timer<PingLoader>*) 196 void PingLoader::timeout(Timer<PingLoader>*)
197 { 197 {
198 if (Page* page = this->page()) { 198 if (Page* page = this->page()) {
199 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) ); 199 TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "Re sourceFinish", "data", InspectorResourceFinishEvent::data(m_identifier, 0, true) );
200 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing. 200 // FIXME(361045): remove InspectorInstrumentation calls once DevTools Ti meline migrates to tracing.
201 InspectorInstrumentation::didFailLoading(page->mainFrame(), m_identifier , ResourceError::cancelledError(m_url)); 201 InspectorInstrumentation::didFailLoading(page->deprecatedLocalMainFrame( ), m_identifier, ResourceError::cancelledError(m_url));
202 } 202 }
203 delete this; 203 delete this;
204 } 204 }
205 205
206 } 206 }
OLDNEW
« no previous file with comments | « Source/core/loader/NavigationScheduler.cpp ('k') | Source/core/page/CreateWindow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698