| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   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  Loading... | 
|  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 } | 
| OLD | NEW |