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

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

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 4 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) 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 : m_client(client) 75 : m_client(client)
76 , m_linkLoadTimer(this, &LinkLoader::linkLoadTimerFired) 76 , m_linkLoadTimer(this, &LinkLoader::linkLoadTimerFired)
77 , m_linkLoadingErrorTimer(this, &LinkLoader::linkLoadingErrorTimerFired) 77 , m_linkLoadingErrorTimer(this, &LinkLoader::linkLoadingErrorTimerFired)
78 { 78 {
79 } 79 }
80 80
81 LinkLoader::~LinkLoader() 81 LinkLoader::~LinkLoader()
82 { 82 {
83 } 83 }
84 84
85 void LinkLoader::linkLoadTimerFired(Timer<LinkLoader>* timer) 85 void LinkLoader::linkLoadTimerFired(TimerBase* timer)
86 { 86 {
87 ASSERT_UNUSED(timer, timer == &m_linkLoadTimer); 87 ASSERT_UNUSED(timer, timer == &m_linkLoadTimer);
88 m_client->linkLoaded(); 88 m_client->linkLoaded();
89 } 89 }
90 90
91 void LinkLoader::linkLoadingErrorTimerFired(Timer<LinkLoader>* timer) 91 void LinkLoader::linkLoadingErrorTimerFired(TimerBase* timer)
92 { 92 {
93 ASSERT_UNUSED(timer, timer == &m_linkLoadingErrorTimer); 93 ASSERT_UNUSED(timer, timer == &m_linkLoadingErrorTimer);
94 m_client->linkLoadingErrored(); 94 m_client->linkLoadingErrored();
95 } 95 }
96 96
97 void LinkLoader::triggerEvents(const Resource* resource) 97 void LinkLoader::triggerEvents(const Resource* resource)
98 { 98 {
99 if (resource->errorOccurred()) 99 if (resource->errorOccurred())
100 m_linkLoadingErrorTimer.startOneShot(0, BLINK_FROM_HERE); 100 m_linkLoadingErrorTimer.startOneShot(0, BLINK_FROM_HERE);
101 else 101 else
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 DEFINE_TRACE(LinkLoader) 399 DEFINE_TRACE(LinkLoader)
400 { 400 {
401 visitor->trace(m_client); 401 visitor->trace(m_client);
402 visitor->trace(m_prerender); 402 visitor->trace(m_prerender);
403 visitor->trace(m_linkPreloadResourceClient); 403 visitor->trace(m_linkPreloadResourceClient);
404 ResourceOwner<Resource, ResourceClient>::trace(visitor); 404 ResourceOwner<Resource, ResourceClient>::trace(visitor);
405 PrerenderClient::trace(visitor); 405 PrerenderClient::trace(visitor);
406 } 406 }
407 407
408 } // namespace blink 408 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/LinkLoader.h ('k') | third_party/WebKit/Source/core/loader/PingLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698