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

Unified Diff: Source/core/fetch/ResourceFetcher.cpp

Issue 910983005: Decouple performance() from LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase + feedback Created 5 years, 10 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/DOMWindow.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ResourceFetcher.cpp
diff --git a/Source/core/fetch/ResourceFetcher.cpp b/Source/core/fetch/ResourceFetcher.cpp
index 868afe873d3ded1d73cbafc1ac9abd691f2e2e30..dcd0a108d52cbf611f2fcf8a3ba4072956b3cf14 100644
--- a/Source/core/fetch/ResourceFetcher.cpp
+++ b/Source/core/fetch/ResourceFetcher.cpp
@@ -60,6 +60,7 @@
#include "core/loader/FrameLoaderClient.h"
#include "core/loader/PingLoader.h"
#include "core/loader/appcache/ApplicationCacheHost.h"
+#include "core/timing/DOMWindowPerformance.h"
#include "core/timing/Performance.h"
#include "core/timing/ResourceTimingInfo.h"
#include "core/svg/graphics/SVGImageChromeClient.h"
@@ -201,7 +202,7 @@ static void reportResourceTiming(ResourceTimingInfo* info, Document* initiatorDo
if (!initiatorDocument || !initiatorDocument->loader())
return;
if (LocalDOMWindow* initiatorWindow = initiatorDocument->domWindow())
- initiatorWindow->performance()->addResourceTiming(*info, initiatorDocument);
+ DOMWindowPerformance::performance(*initiatorWindow)->addResourceTiming(*info, initiatorDocument);
}
static WebURLRequest::RequestContext requestContextFromType(const ResourceFetcher* fetcher, Resource::Type type)
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/frame/DOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698