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

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

Issue 1985033003: [DevTools] Use registerWeakMembers in NetworkResourcesData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorInstrumentation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698