| OLD | NEW |
| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void traceAsyncCallbackStarting(ExecutionContext*, int operationId); | 98 void traceAsyncCallbackStarting(ExecutionContext*, int operationId); |
| 99 void traceAsyncCallbackCompleted() { didFireAsyncCall(); }; | 99 void traceAsyncCallbackCompleted() { didFireAsyncCall(); }; |
| 100 | 100 |
| 101 void trace(Visitor*) override; | 101 void trace(Visitor*) override; |
| 102 | 102 |
| 103 class ExecutionContextData; | 103 class ExecutionContextData; |
| 104 | 104 |
| 105 private: | 105 private: |
| 106 void willHandleXHREvent(XMLHttpRequest*, Event*); | 106 void willHandleXHREvent(XMLHttpRequest*, Event*); |
| 107 | 107 |
| 108 void setCurrentAsyncCallChain(ExecutionContext*, PassRefPtrWillBeRawPtr<Asyn
cCallChain>); | 108 void setCurrentAsyncCallChain(ExecutionContext*, int operationId); |
| 109 void didFireAsyncCall(); | 109 void didFireAsyncCall(); |
| 110 | 110 |
| 111 ExecutionContextData* createContextDataIfNeeded(ExecutionContext*); | 111 ExecutionContextData* createContextDataIfNeeded(ExecutionContext*); |
| 112 | 112 |
| 113 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; | 113 using ExecutionContextDataMap = WillBeHeapHashMap<RawPtrWillBeMember<Executi
onContext>, OwnPtrWillBeMember<ExecutionContextData>>; |
| 114 ExecutionContextDataMap m_executionContextDataMap; | 114 ExecutionContextDataMap m_executionContextDataMap; |
| 115 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; | 115 RawPtrWillBeMember<InspectorDebuggerAgent> m_debuggerAgent; |
| 116 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 116 RawPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 | 120 |
| 121 #endif // AsyncCallTracker_h | 121 #endif // AsyncCallTracker_h |
| OLD | NEW |