| OLD | NEW |
| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 if (!m_resourceTimingReportTimer.isActive()) | 264 if (!m_resourceTimingReportTimer.isActive()) |
| 265 m_resourceTimingReportTimer.startOneShot(0, BLINK_FROM_HERE); | 265 m_resourceTimingReportTimer.startOneShot(0, BLINK_FROM_HERE); |
| 266 } | 266 } |
| 267 | 267 |
| 268 if (m_validatedURLs.size() >= kMaxValidatedURLsSize) { | 268 if (m_validatedURLs.size() >= kMaxValidatedURLsSize) { |
| 269 m_validatedURLs.clear(); | 269 m_validatedURLs.clear(); |
| 270 } | 270 } |
| 271 m_validatedURLs.add(request.resourceRequest().url()); | 271 m_validatedURLs.add(request.resourceRequest().url()); |
| 272 } | 272 } |
| 273 | 273 |
| 274 static PassRefPtr<TraceEvent::ConvertableToTraceFormat> urlForTraceEvent(const K
URL& url) | 274 static PassRefPtr<TracedValue> urlForTraceEvent(const KURL& url) |
| 275 { | 275 { |
| 276 RefPtr<TracedValue> value = TracedValue::create(); | 276 RefPtr<TracedValue> value = TracedValue::create(); |
| 277 value->setString("url", url.string()); | 277 value->setString("url", url.string()); |
| 278 return value.release(); | 278 return value.release(); |
| 279 } | 279 } |
| 280 | 280 |
| 281 ResourcePtr<Resource> ResourceFetcher::preCacheData(const FetchRequest& request,
const ResourceFactory& factory, const SubstituteData& substituteData) | 281 ResourcePtr<Resource> ResourceFetcher::preCacheData(const FetchRequest& request,
const ResourceFactory& factory, const SubstituteData& substituteData) |
| 282 { | 282 { |
| 283 const KURL& url = request.resourceRequest().url(); | 283 const KURL& url = request.resourceRequest().url(); |
| 284 ASSERT(url.protocolIsData() || substituteData.isValid()); | 284 ASSERT(url.protocolIsData() || substituteData.isValid()); |
| (...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 visitor->trace(m_loaders); | 1166 visitor->trace(m_loaders); |
| 1167 visitor->trace(m_nonBlockingLoaders); | 1167 visitor->trace(m_nonBlockingLoaders); |
| 1168 #if ENABLE(OILPAN) | 1168 #if ENABLE(OILPAN) |
| 1169 visitor->trace(m_documentResources); | 1169 visitor->trace(m_documentResources); |
| 1170 visitor->trace(m_preloads); | 1170 visitor->trace(m_preloads); |
| 1171 visitor->trace(m_resourceTimingInfoMap); | 1171 visitor->trace(m_resourceTimingInfoMap); |
| 1172 #endif | 1172 #endif |
| 1173 } | 1173 } |
| 1174 | 1174 |
| 1175 } // namespace blink | 1175 } // namespace blink |
| OLD | NEW |