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

Side by Side Diff: Source/core/inspector/AsyncCallTracker.cpp

Issue 1311923004: Rename FormData/FormDataBuilder to EncodedFormData/FormDataEncoder respectively. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: update comments Created 5 years, 3 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 willHandleXHREvent(xhr, event); 262 willHandleXHREvent(xhr, event);
263 } else { 263 } else {
264 ExecutionContext* context = eventTarget->executionContext(); 264 ExecutionContext* context = eventTarget->executionContext();
265 if (ExecutionContextData* data = m_executionContextDataMap.get(context)) 265 if (ExecutionContextData* data = m_executionContextDataMap.get(context))
266 willFireAsyncCall(data->m_eventCallChains.get(event)); 266 willFireAsyncCall(data->m_eventCallChains.get(event));
267 else 267 else
268 willFireAsyncCall(V8DebuggerAgent::unknownAsyncOperationId); 268 willFireAsyncCall(V8DebuggerAgent::unknownAsyncOperationId);
269 } 269 }
270 } 270 }
271 271
272 void AsyncCallTracker::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient*, const AtomicString&, const KURL&, bool async, PassRefPtr<FormData>, const HTTPH eaderMap&, bool) 272 void AsyncCallTracker::willLoadXHR(XMLHttpRequest* xhr, ThreadableLoaderClient*, const AtomicString&, const KURL&, bool async, PassRefPtr<EncodedFormData>, cons t HTTPHeaderMap&, bool)
273 { 273 {
274 ASSERT(xhr->executionContext()); 274 ASSERT(xhr->executionContext());
275 ASSERT(m_debuggerAgent->trackingAsyncCalls()); 275 ASSERT(m_debuggerAgent->trackingAsyncCalls());
276 if (!async) 276 if (!async)
277 return; 277 return;
278 int operationId = m_debuggerAgent->traceAsyncOperationStarting(xhrSendName); 278 int operationId = m_debuggerAgent->traceAsyncOperationStarting(xhrSendName);
279 ExecutionContextData* data = createContextDataIfNeeded(xhr->executionContext ()); 279 ExecutionContextData* data = createContextDataIfNeeded(xhr->executionContext ());
280 data->m_xhrCallChains.set(xhr, operationId); 280 data->m_xhrCallChains.set(xhr, operationId);
281 } 281 }
282 282
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 { 431 {
432 #if ENABLE(OILPAN) 432 #if ENABLE(OILPAN)
433 visitor->trace(m_executionContextDataMap); 433 visitor->trace(m_executionContextDataMap);
434 visitor->trace(m_debuggerAgent); 434 visitor->trace(m_debuggerAgent);
435 visitor->trace(m_instrumentingAgents); 435 visitor->trace(m_instrumentingAgents);
436 #endif 436 #endif
437 V8DebuggerAgent::AsyncCallTrackingListener::trace(visitor); 437 V8DebuggerAgent::AsyncCallTrackingListener::trace(visitor);
438 } 438 }
439 439
440 } // namespace blink 440 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/AsyncCallTracker.h ('k') | Source/core/inspector/InspectorInstrumentation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698