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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2760363002: [instrumentation] Generalize instrumentation to be used beyond the core layer (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index f7fcd772965cc5c12ac3a9c865d8872eae65906a..bbbd07160947971f1e0664ae5caadb2d2303d772 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -29,6 +29,7 @@
#include "platform/Histogram.h"
#include "platform/RuntimeEnabledFeatures.h"
+#include "platform/instrumentation/PlatformInstrumentation.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
#include "platform/instrumentation/tracing/TracedValue.h"
#include "platform/loader/fetch/FetchContext.h"
@@ -1247,8 +1248,13 @@ bool ResourceFetcher::startLoad(Resource* resource) {
}
ResourceRequest request(resource->resourceRequest());
- context().dispatchWillSendRequest(resource->identifier(), request,
- ResourceResponse(),
+ ResourceResponse response;
+
+ blink::probe::PlatformSendRequest probe(&context(), resource->identifier(),
+ request, response,
+ resource->options().initiatorInfo);
+
+ context().dispatchWillSendRequest(resource->identifier(), request, response,
resource->options().initiatorInfo);
// TODO(shaochuan): Saving modified ResourceRequest back to |resource|, remove

Powered by Google App Engine
This is Rietveld 408576698