| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) | 5 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) |
| 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 6 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 7 | 7 |
| 8 This library is free software; you can redistribute it and/or | 8 This library is free software; you can redistribute it and/or |
| 9 modify it under the terms of the GNU Library General Public | 9 modify it under the terms of the GNU Library General Public |
| 10 License as published by the Free Software Foundation; either | 10 License as published by the Free Software Foundation; either |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "platform/RuntimeEnabledFeatures.h" | 33 #include "platform/RuntimeEnabledFeatures.h" |
| 34 #include "platform/SharedBuffer.h" | 34 #include "platform/SharedBuffer.h" |
| 35 #include "platform/instrumentation/tracing/TraceEvent.h" | 35 #include "platform/instrumentation/tracing/TraceEvent.h" |
| 36 #include "platform/loader/fetch/MemoryCache.h" | 36 #include "platform/loader/fetch/MemoryCache.h" |
| 37 #include "platform/loader/fetch/ResourceClient.h" | 37 #include "platform/loader/fetch/ResourceClient.h" |
| 38 #include "platform/loader/fetch/ResourceFetcher.h" | 38 #include "platform/loader/fetch/ResourceFetcher.h" |
| 39 #include "platform/loader/fetch/ResourceLoader.h" | 39 #include "platform/loader/fetch/ResourceLoader.h" |
| 40 #include "platform/loader/fetch/ResourceLoadingLog.h" | 40 #include "platform/loader/fetch/ResourceLoadingLog.h" |
| 41 #include "platform/network/HTTPParsers.h" | 41 #include "platform/network/HTTPParsers.h" |
| 42 #include "platform/weborigin/SecurityViolationReportingPolicy.h" | 42 #include "platform/weborigin/SecurityViolationReportingPolicy.h" |
| 43 #include "platform/wtf/CurrentTime.h" |
| 44 #include "platform/wtf/StdLibExtras.h" |
| 43 #include "public/platform/Platform.h" | 45 #include "public/platform/Platform.h" |
| 44 #include "v8/include/v8.h" | 46 #include "v8/include/v8.h" |
| 45 #include "wtf/CurrentTime.h" | |
| 46 #include "wtf/StdLibExtras.h" | |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 namespace { | 49 namespace { |
| 50 // The amount of time to wait before informing the clients that the image has | 50 // The amount of time to wait before informing the clients that the image has |
| 51 // been updated (in seconds). This effectively throttles invalidations that | 51 // been updated (in seconds). This effectively throttles invalidations that |
| 52 // result from new data arriving for this image. | 52 // result from new data arriving for this image. |
| 53 constexpr double kFlushDelaySeconds = 1.; | 53 constexpr double kFlushDelaySeconds = 1.; |
| 54 } // namespace | 54 } // namespace |
| 55 | 55 |
| 56 class ImageResource::ImageResourceInfoImpl final | 56 class ImageResource::ImageResourceInfoImpl final |
| (...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 // reloading in Step 3 due to notifyObservers()'s | 594 // reloading in Step 3 due to notifyObservers()'s |
| 595 // schedulingReloadOrShouldReloadBrokenPlaceholder() check. | 595 // schedulingReloadOrShouldReloadBrokenPlaceholder() check. |
| 596 // 3. reloadIfLoFiOrPlaceholderImage() is called via ResourceFetcher | 596 // 3. reloadIfLoFiOrPlaceholderImage() is called via ResourceFetcher |
| 597 // (a) via didFinishLoading() called in decodeError(), or | 597 // (a) via didFinishLoading() called in decodeError(), or |
| 598 // (b) after returning ImageResource::updateImage(). | 598 // (b) after returning ImageResource::updateImage(). |
| 599 DecodeError(all_data_received); | 599 DecodeError(all_data_received); |
| 600 } | 600 } |
| 601 } | 601 } |
| 602 | 602 |
| 603 } // namespace blink | 603 } // namespace blink |
| OLD | NEW |