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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 } | 312 } |
313 | 313 |
314 DEFINE_INLINE_VIRTUAL_TRACE() | 314 DEFINE_INLINE_VIRTUAL_TRACE() |
315 { | 315 { |
316 ContextLifecycleObserver::trace(visitor); | 316 ContextLifecycleObserver::trace(visitor); |
317 } | 317 } |
318 | 318 |
319 AssociatedURLLoader* m_parent; | 319 AssociatedURLLoader* m_parent; |
320 }; | 320 }; |
321 | 321 |
322 AssociatedURLLoader::AssociatedURLLoader(RawPtr<WebLocalFrameImpl> frameImpl, co
nst WebURLLoaderOptions& options) | 322 AssociatedURLLoader::AssociatedURLLoader(WebLocalFrameImpl* frameImpl, const Web
URLLoaderOptions& options) |
323 : m_options(options) | 323 : m_options(options) |
324 , m_observer(new Observer(this, frameImpl->frame()->document())) | 324 , m_observer(new Observer(this, frameImpl->frame()->document())) |
325 { | 325 { |
326 } | 326 } |
327 | 327 |
328 AssociatedURLLoader::~AssociatedURLLoader() | 328 AssociatedURLLoader::~AssociatedURLLoader() |
329 { | 329 { |
330 cancel(); | 330 cancel(); |
331 } | 331 } |
332 | 332 |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 // there could be a WebURLLoader instance behind the | 455 // there could be a WebURLLoader instance behind the |
456 // DocumentThreadableLoader instance. So, for safety, we chose to just | 456 // DocumentThreadableLoader instance. So, for safety, we chose to just |
457 // crash here. | 457 // crash here. |
458 RELEASE_ASSERT(ThreadState::current()); | 458 RELEASE_ASSERT(ThreadState::current()); |
459 | 459 |
460 m_observer->dispose(); | 460 m_observer->dispose(); |
461 m_observer = nullptr; | 461 m_observer = nullptr; |
462 } | 462 } |
463 | 463 |
464 } // namespace blink | 464 } // namespace blink |
OLD | NEW |