| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|