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

Side by Side Diff: Source/core/loader/LinkLoader.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/loader/NavigationScheduler.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 { 76 {
77 ASSERT_UNUSED(timer, timer == &m_linkLoadingErrorTimer); 77 ASSERT_UNUSED(timer, timer == &m_linkLoadingErrorTimer);
78 m_client->linkLoadingErrored(); 78 m_client->linkLoadingErrored();
79 } 79 }
80 80
81 void LinkLoader::notifyFinished(Resource* resource) 81 void LinkLoader::notifyFinished(Resource* resource)
82 { 82 {
83 ASSERT(this->resource() == resource); 83 ASSERT(this->resource() == resource);
84 84
85 if (resource->errorOccurred()) 85 if (resource->errorOccurred())
86 m_linkLoadingErrorTimer.startOneShot(0); 86 m_linkLoadingErrorTimer.startOneShot(0, FROM_HERE);
87 else 87 else
88 m_linkLoadTimer.startOneShot(0); 88 m_linkLoadTimer.startOneShot(0, FROM_HERE);
89 89
90 clearResource(); 90 clearResource();
91 } 91 }
92 92
93 void LinkLoader::didStartPrerender() 93 void LinkLoader::didStartPrerender()
94 { 94 {
95 m_client->didStartLinkPrerender(); 95 m_client->didStartLinkPrerender();
96 } 96 }
97 97
98 void LinkLoader::didStopPrerender() 98 void LinkLoader::didStopPrerender()
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 { 150 {
151 // Only prerenders need treatment here; other links either use the Resource interface, or are notionally 151 // Only prerenders need treatment here; other links either use the Resource interface, or are notionally
152 // atomic (dns prefetch). 152 // atomic (dns prefetch).
153 if (m_prerender) { 153 if (m_prerender) {
154 m_prerender->cancel(); 154 m_prerender->cancel();
155 m_prerender.clear(); 155 m_prerender.clear();
156 } 156 }
157 } 157 }
158 158
159 } 159 }
OLDNEW
« no previous file with comments | « Source/core/loader/ImageLoader.cpp ('k') | Source/core/loader/NavigationScheduler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698