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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: reuse existing instrumentation for network Created 3 years, 11 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 DECLARE_VIRTUAL_TRACE(); 75 DECLARE_VIRTUAL_TRACE();
76 76
77 // Called from instrumentation. 77 // Called from instrumentation.
78 void didBlockRequest(LocalFrame*, 78 void didBlockRequest(LocalFrame*,
79 const ResourceRequest&, 79 const ResourceRequest&,
80 DocumentLoader*, 80 DocumentLoader*,
81 const FetchInitiatorInfo&, 81 const FetchInitiatorInfo&,
82 ResourceRequestBlockedReason); 82 ResourceRequestBlockedReason);
83 void didChangeResourcePriority(unsigned long identifier, 83 void didChangeResourcePriority(unsigned long identifier,
84 ResourceLoadPriority); 84 ResourceLoadPriority);
85 void willSendRequest(LocalFrame*, 85 void willSendRequest(unsigned long identifier,
86 unsigned long identifier,
87 DocumentLoader*, 86 DocumentLoader*,
88 ResourceRequest&, 87 ResourceRequest&,
89 const ResourceResponse& redirectResponse, 88 const ResourceResponse& redirectResponse,
90 const FetchInitiatorInfo&); 89 const FetchInitiatorInfo&,
90 double timestamp,
91 double wallTime);
91 void markResourceAsCached(unsigned long identifier); 92 void markResourceAsCached(unsigned long identifier);
92 void didReceiveResourceResponse(LocalFrame*, 93 void didReceiveResourceResponse(ExecutionContext*,
93 unsigned long identifier, 94 unsigned long identifier,
94 DocumentLoader*, 95 DocumentLoader*,
95 const ResourceResponse&, 96 const ResourceResponse&,
96 Resource*); 97 Resource*);
97 void didReceiveData(LocalFrame*, 98 void didReceiveData(unsigned long identifier,
98 unsigned long identifier,
99 const char* data, 99 const char* data,
100 int dataLength); 100 int dataLength);
101 void didReceiveEncodedDataLength(LocalFrame*, 101 void didReceiveEncodedDataLength(LocalFrame*,
102 unsigned long identifier, 102 unsigned long identifier,
103 int encodedDataLength); 103 int encodedDataLength);
104 void didFinishLoading(unsigned long identifier, 104 void didFinishLoading(unsigned long identifier,
105 double monotonicFinishTime, 105 double monotonicFinishTime,
106 int64_t encodedDataLength); 106 int64_t encodedDataLength);
107 void didReceiveCORSRedirectResponse(LocalFrame*, 107 void didReceiveCORSRedirectResponse(LocalFrame*,
108 unsigned long identifier, 108 unsigned long identifier,
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 bool fetchResourceContent(Document*, 226 bool fetchResourceContent(Document*,
227 const KURL&, 227 const KURL&,
228 String* content, 228 String* content,
229 bool* base64Encoded); 229 bool* base64Encoded);
230 bool cacheDisabled(); 230 bool cacheDisabled();
231 231
232 private: 232 private:
233 explicit InspectorNetworkAgent(InspectedFrames*); 233 explicit InspectorNetworkAgent(InspectedFrames*);
234 234
235 void enable(int totalBufferSize, int resourceBufferSize); 235 void enable(int totalBufferSize, int resourceBufferSize);
236 void willSendRequestInternal(LocalFrame*, 236 void willSendRequestInternal(unsigned long identifier,
237 unsigned long identifier,
238 DocumentLoader*, 237 DocumentLoader*,
239 const ResourceRequest&, 238 const ResourceRequest&,
240 const ResourceResponse& redirectResponse, 239 const ResourceResponse& redirectResponse,
241 const FetchInitiatorInfo&); 240 const FetchInitiatorInfo&,
241 double timestamp,
242 double wallTime);
242 void delayedRemoveReplayXHR(XMLHttpRequest*); 243 void delayedRemoveReplayXHR(XMLHttpRequest*);
243 void removeFinishedReplayXHRFired(TimerBase*); 244 void removeFinishedReplayXHRFired(TimerBase*);
244 void didFinishXHRInternal(ExecutionContext*, 245 void didFinishXHRInternal(ExecutionContext*,
245 XMLHttpRequest*, 246 XMLHttpRequest*,
246 ThreadableLoaderClient*, 247 ThreadableLoaderClient*,
247 const AtomicString&, 248 const AtomicString&,
248 const String&, 249 const String&,
249 bool); 250 bool);
250 251
251 bool canGetResponseBodyBlob(const String& requestId); 252 bool canGetResponseBodyBlob(const String& requestId);
(...skipping 27 matching lines...) Expand all
279 bool m_isRecalculatingStyle; 280 bool m_isRecalculatingStyle;
280 281
281 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; 282 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs;
282 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; 283 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted;
283 Timer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer; 284 Timer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer;
284 }; 285 };
285 286
286 } // namespace blink 287 } // namespace blink
287 288
288 #endif // !defined(InspectorNetworkAgent_h) 289 #endif // !defined(InspectorNetworkAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698