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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 1620673002: Remove Blink's ConvertableToTraceFormat (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org)
4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org)
5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/ 6 Copyright (C) 2009 Torch Mobile Inc. http://www.torchmobile.com/
7 7
8 This library is free software; you can redistribute it and/or 8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public 9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either 10 License as published by the Free Software Foundation; either
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 if (!m_resourceTimingReportTimer.isActive()) 261 if (!m_resourceTimingReportTimer.isActive())
262 m_resourceTimingReportTimer.startOneShot(0, BLINK_FROM_HERE); 262 m_resourceTimingReportTimer.startOneShot(0, BLINK_FROM_HERE);
263 } 263 }
264 264
265 if (m_validatedURLs.size() >= kMaxValidatedURLsSize) { 265 if (m_validatedURLs.size() >= kMaxValidatedURLsSize) {
266 m_validatedURLs.clear(); 266 m_validatedURLs.clear();
267 } 267 }
268 m_validatedURLs.add(request.resourceRequest().url()); 268 m_validatedURLs.add(request.resourceRequest().url());
269 } 269 }
270 270
271 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> urlForTraceEvent(const K URL& url) 271 static PassRefPtr<TracedValue> urlForTraceEvent(const KURL& url)
272 { 272 {
273 RefPtr<TracedValue> value = TracedValue::create(); 273 RefPtr<TracedValue> value = TracedValue::create();
274 value->setString("url", url.string()); 274 value->setString("url", url.string());
275 return value.release(); 275 return value.release();
276 } 276 }
277 277
278 ResourcePtr<Resource> ResourceFetcher::preCacheData(const FetchRequest& request, const ResourceFactory& factory, const SubstituteData& substituteData) 278 ResourcePtr<Resource> ResourceFetcher::preCacheData(const FetchRequest& request, const ResourceFactory& factory, const SubstituteData& substituteData)
279 { 279 {
280 const KURL& url = request.resourceRequest().url(); 280 const KURL& url = request.resourceRequest().url();
281 ASSERT(url.protocolIsData() || substituteData.isValid()); 281 ASSERT(url.protocolIsData() || substituteData.isValid());
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 visitor->trace(m_loaders); 1165 visitor->trace(m_loaders);
1166 visitor->trace(m_nonBlockingLoaders); 1166 visitor->trace(m_nonBlockingLoaders);
1167 #if ENABLE(OILPAN) 1167 #if ENABLE(OILPAN)
1168 visitor->trace(m_documentResources); 1168 visitor->trace(m_documentResources);
1169 visitor->trace(m_preloads); 1169 visitor->trace(m_preloads);
1170 visitor->trace(m_resourceTimingInfoMap); 1170 visitor->trace(m_resourceTimingInfoMap);
1171 #endif 1171 #endif
1172 } 1172 }
1173 1173
1174 } // namespace blink 1174 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698