OLD | NEW |
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 DECLARE_VIRTUAL_TRACE(); | 74 DECLARE_VIRTUAL_TRACE(); |
75 | 75 |
76 // Called from instrumentation. | 76 // Called from instrumentation. |
77 void didBlockRequest(LocalFrame*, | 77 void didBlockRequest(LocalFrame*, |
78 const ResourceRequest&, | 78 const ResourceRequest&, |
79 DocumentLoader*, | 79 DocumentLoader*, |
80 const FetchInitiatorInfo&, | 80 const FetchInitiatorInfo&, |
81 ResourceRequestBlockedReason); | 81 ResourceRequestBlockedReason); |
82 void didChangeResourcePriority(unsigned long identifier, | 82 void didChangeResourcePriority(unsigned long identifier, |
83 ResourceLoadPriority); | 83 ResourceLoadPriority); |
84 void willSendRequest(LocalFrame*, | 84 void willSendRequest(unsigned long identifier, |
85 unsigned long identifier, | |
86 DocumentLoader*, | 85 DocumentLoader*, |
87 ResourceRequest&, | 86 ResourceRequest&, |
88 const ResourceResponse& redirectResponse, | 87 const ResourceResponse& redirectResponse, |
89 const FetchInitiatorInfo&); | 88 const FetchInitiatorInfo&); |
90 void markResourceAsCached(unsigned long identifier); | 89 void markResourceAsCached(unsigned long identifier); |
91 void didReceiveResourceResponse(LocalFrame*, | 90 void didReceiveResourceResponse(ExecutionContext*, |
92 unsigned long identifier, | 91 unsigned long identifier, |
93 DocumentLoader*, | 92 DocumentLoader*, |
94 const ResourceResponse&, | 93 const ResourceResponse&, |
95 Resource*); | 94 Resource*); |
96 void didReceiveData(LocalFrame*, | 95 void didReceiveData(unsigned long identifier, |
97 unsigned long identifier, | |
98 const char* data, | 96 const char* data, |
99 int dataLength); | 97 int dataLength); |
100 void didReceiveEncodedDataLength(LocalFrame*, | 98 void didReceiveEncodedDataLength(LocalFrame*, |
101 unsigned long identifier, | 99 unsigned long identifier, |
102 int encodedDataLength); | 100 int encodedDataLength); |
103 void didFinishLoading(unsigned long identifier, | 101 void didFinishLoading(unsigned long identifier, |
104 double monotonicFinishTime, | 102 double monotonicFinishTime, |
105 int64_t encodedDataLength); | 103 int64_t encodedDataLength); |
106 void didReceiveCORSRedirectResponse(LocalFrame*, | 104 void didReceiveCORSRedirectResponse(LocalFrame*, |
107 unsigned long identifier, | 105 unsigned long identifier, |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 bool fetchResourceContent(Document*, | 223 bool fetchResourceContent(Document*, |
226 const KURL&, | 224 const KURL&, |
227 String* content, | 225 String* content, |
228 bool* base64Encoded); | 226 bool* base64Encoded); |
229 bool cacheDisabled(); | 227 bool cacheDisabled(); |
230 | 228 |
231 private: | 229 private: |
232 explicit InspectorNetworkAgent(InspectedFrames*); | 230 explicit InspectorNetworkAgent(InspectedFrames*); |
233 | 231 |
234 void enable(int totalBufferSize, int resourceBufferSize); | 232 void enable(int totalBufferSize, int resourceBufferSize); |
235 void willSendRequestInternal(LocalFrame*, | 233 void willSendRequestInternal(unsigned long identifier, |
236 unsigned long identifier, | |
237 DocumentLoader*, | 234 DocumentLoader*, |
238 const ResourceRequest&, | 235 const ResourceRequest&, |
239 const ResourceResponse& redirectResponse, | 236 const ResourceResponse& redirectResponse, |
240 const FetchInitiatorInfo&); | 237 const FetchInitiatorInfo&); |
241 void delayedRemoveReplayXHR(XMLHttpRequest*); | 238 void delayedRemoveReplayXHR(XMLHttpRequest*); |
242 void removeFinishedReplayXHRFired(TimerBase*); | 239 void removeFinishedReplayXHRFired(TimerBase*); |
243 void didFinishXHRInternal(ExecutionContext*, | 240 void didFinishXHRInternal(ExecutionContext*, |
244 XMLHttpRequest*, | 241 XMLHttpRequest*, |
245 ThreadableLoaderClient*, | 242 ThreadableLoaderClient*, |
246 const AtomicString&, | 243 const AtomicString&, |
(...skipping 25 matching lines...) Expand all Loading... |
272 typedef HashMap<String, std::unique_ptr<protocol::Network::Initiator>> | 269 typedef HashMap<String, std::unique_ptr<protocol::Network::Initiator>> |
273 FrameNavigationInitiatorMap; | 270 FrameNavigationInitiatorMap; |
274 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; | 271 FrameNavigationInitiatorMap m_frameNavigationInitiatorMap; |
275 | 272 |
276 // FIXME: InspectorNetworkAgent should now be aware of style recalculation. | 273 // FIXME: InspectorNetworkAgent should now be aware of style recalculation. |
277 std::unique_ptr<protocol::Network::Initiator> m_styleRecalculationInitiator; | 274 std::unique_ptr<protocol::Network::Initiator> m_styleRecalculationInitiator; |
278 bool m_isRecalculatingStyle; | 275 bool m_isRecalculatingStyle; |
279 | 276 |
280 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; | 277 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; |
281 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; | 278 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; |
282 TaskRunnerTimer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer; | 279 std::unique_ptr<TaskRunnerTimer<InspectorNetworkAgent>> |
| 280 m_removeFinishedReplayXHRTimer; |
283 }; | 281 }; |
284 | 282 |
285 } // namespace blink | 283 } // namespace blink |
286 | 284 |
287 #endif // !defined(InspectorNetworkAgent_h) | 285 #endif // !defined(InspectorNetworkAgent_h) |
OLD | NEW |