Chromium Code Reviews| 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) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 320 m_cacheHandler = CachedMetadataHandlerImpl::create(this); | 320 m_cacheHandler = CachedMetadataHandlerImpl::create(this); |
| 321 } | 321 } |
| 322 | 322 |
| 323 Resource::~Resource() | 323 Resource::~Resource() |
| 324 { | 324 { |
| 325 InstanceCounters::decrementCounter(InstanceCounters::ResourceCounter); | 325 InstanceCounters::decrementCounter(InstanceCounters::ResourceCounter); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void Resource::willDestroyResource() | 328 void Resource::willDestroyResource() |
| 329 { | 329 { |
| 330 InspectorInstrumentation::willDestroyResource(this); | |
|
Nate Chapin
2016/05/17 18:23:36
This is the last usage of InspectorInstrumentation
dgozman
2016/05/17 18:34:26
Done.
| |
| 331 willDestroyResourceInternal(); | 330 willDestroyResourceInternal(); |
| 332 } | 331 } |
| 333 | 332 |
| 334 DEFINE_TRACE(Resource) | 333 DEFINE_TRACE(Resource) |
| 335 { | 334 { |
| 336 visitor->trace(m_loader); | 335 visitor->trace(m_loader); |
| 337 visitor->trace(m_cacheHandler); | 336 visitor->trace(m_cacheHandler); |
| 338 } | 337 } |
| 339 | 338 |
| 340 void Resource::load(ResourceFetcher* fetcher) | 339 void Resource::load(ResourceFetcher* fetcher) |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1130 case Resource::Media: | 1129 case Resource::Media: |
| 1131 return "Media"; | 1130 return "Media"; |
| 1132 case Resource::Manifest: | 1131 case Resource::Manifest: |
| 1133 return "Manifest"; | 1132 return "Manifest"; |
| 1134 } | 1133 } |
| 1135 ASSERT_NOT_REACHED(); | 1134 ASSERT_NOT_REACHED(); |
| 1136 return "Unknown"; | 1135 return "Unknown"; |
| 1137 } | 1136 } |
| 1138 | 1137 |
| 1139 } // namespace blink | 1138 } // namespace blink |
| OLD | NEW |