Chromium Code Reviews| Index: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h |
| diff --git a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h |
| index 33c7cff4bbfa62a3be7ae00d49379a25d3f34049..41c3012b088b9c539cd905c7aa20733111885d80 100644 |
| --- a/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h |
| +++ b/third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h |
| @@ -67,6 +67,10 @@ class CORE_EXPORT InspectorNetworkAgent final |
| static InspectorNetworkAgent* Create(InspectedFrames* inspected_frames) { |
| return new InspectorNetworkAgent(inspected_frames); |
| } |
| + static InspectorNetworkAgent* CreateForWorker( |
| + ExecutionContext* worker_global_scope) { |
| + return new InspectorNetworkAgent(worker_global_scope); |
|
kinuko
2017/05/22 07:51:02
Could you update the parameter name as well?
horo
2017/05/22 10:42:39
Done.
|
| + } |
| void Restore() override; |
| @@ -74,34 +78,30 @@ class CORE_EXPORT InspectorNetworkAgent final |
| DECLARE_VIRTUAL_TRACE(); |
| // Probes. |
| - void DidBlockRequest(LocalFrame*, |
| - const ResourceRequest&, |
| + void DidBlockRequest(const ResourceRequest&, |
| DocumentLoader*, |
| const FetchInitiatorInfo&, |
| ResourceRequestBlockedReason); |
| void DidChangeResourcePriority(unsigned long identifier, |
| ResourceLoadPriority); |
| - void WillSendRequest(LocalFrame*, |
| - unsigned long identifier, |
| + void WillSendRequest(unsigned long identifier, |
| DocumentLoader*, |
| ResourceRequest&, |
| const ResourceResponse& redirect_response, |
| const FetchInitiatorInfo&); |
| void MarkResourceAsCached(unsigned long identifier); |
| - void DidReceiveResourceResponse(LocalFrame*, |
| - unsigned long identifier, |
| + void DidReceiveResourceResponse(unsigned long identifier, |
| DocumentLoader*, |
| const ResourceResponse&, |
| Resource*); |
| - void DidReceiveData(LocalFrame*, |
| - unsigned long identifier, |
| + void DidReceiveData(unsigned long identifier, |
| + DocumentLoader*, |
| const char* data, |
| int data_length); |
| - void DidReceiveEncodedDataLength(LocalFrame*, |
| - unsigned long identifier, |
| + void DidReceiveEncodedDataLength(unsigned long identifier, |
| int encoded_data_length); |
| - void DidFinishLoading(LocalFrame*, |
| - unsigned long identifier, |
| + void DidFinishLoading(unsigned long identifier, |
| + DocumentLoader*, |
| double monotonic_finish_time, |
| int64_t encoded_data_length, |
| int64_t decoded_body_length); |
| @@ -231,10 +231,10 @@ class CORE_EXPORT InspectorNetworkAgent final |
| private: |
| explicit InspectorNetworkAgent(InspectedFrames*); |
| + explicit InspectorNetworkAgent(ExecutionContext*); |
| void Enable(int total_buffer_size, int resource_buffer_size); |
| - void WillSendRequestInternal(LocalFrame*, |
| - unsigned long identifier, |
| + void WillSendRequestInternal(unsigned long identifier, |
| DocumentLoader*, |
| const ResourceRequest&, |
| const ResourceResponse& redirect_response, |
| @@ -253,7 +253,10 @@ class CORE_EXPORT InspectorNetworkAgent final |
| std::unique_ptr<GetResponseBodyCallback>); |
| void ClearPendingRequestData(); |
| + // This is null while inspecting workers. |
| Member<InspectedFrames> inspected_frames_; |
| + // This is null while inspecting frames. |
| + Member<ExecutionContext> worker_global_scope_; |
|
kinuko
2017/05/22 07:51:02
execution_context_ ?
horo
2017/05/22 10:42:39
Done.
|
| String host_id_; |
| Member<NetworkResourcesData> resources_data_; |