OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 2011, 2012 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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 m_errorTimer.startOneShot(0, FROM_HERE); | 277 m_errorTimer.startOneShot(0, FROM_HERE); |
278 } | 278 } |
279 | 279 |
280 void AssociatedURLLoader::ClientAdapter::notifyError(Timer<ClientAdapter>* timer
) | 280 void AssociatedURLLoader::ClientAdapter::notifyError(Timer<ClientAdapter>* timer
) |
281 { | 281 { |
282 ASSERT_UNUSED(timer, timer == &m_errorTimer); | 282 ASSERT_UNUSED(timer, timer == &m_errorTimer); |
283 | 283 |
284 m_client->didFail(m_loader, m_error); | 284 m_client->didFail(m_loader, m_error); |
285 } | 285 } |
286 | 286 |
287 AssociatedURLLoader::AssociatedURLLoader(PassRefPtr<WebLocalFrameImpl> frameImpl
, const WebURLLoaderOptions& options) | 287 AssociatedURLLoader::AssociatedURLLoader(PassRefPtrWillBeRawPtr<WebLocalFrameImp
l> frameImpl, const WebURLLoaderOptions& options) |
288 : m_frameImpl(frameImpl) | 288 : m_frameImpl(frameImpl) |
289 , m_options(options) | 289 , m_options(options) |
290 , m_client(0) | 290 , m_client(0) |
291 { | 291 { |
292 ASSERT(m_frameImpl); | 292 ASSERT(m_frameImpl); |
293 } | 293 } |
294 | 294 |
295 AssociatedURLLoader::~AssociatedURLLoader() | 295 AssociatedURLLoader::~AssociatedURLLoader() |
296 { | 296 { |
297 cancel(); | 297 cancel(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 m_loader->cancel(); | 370 m_loader->cancel(); |
371 } | 371 } |
372 | 372 |
373 void AssociatedURLLoader::setDefersLoading(bool defersLoading) | 373 void AssociatedURLLoader::setDefersLoading(bool defersLoading) |
374 { | 374 { |
375 if (m_loader) | 375 if (m_loader) |
376 m_loader->setDefersLoading(defersLoading); | 376 m_loader->setDefersLoading(defersLoading); |
377 } | 377 } |
378 | 378 |
379 } // namespace blink | 379 } // namespace blink |
OLD | NEW |