Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/ImageResource.cpp

Issue 2638383008: Temporarily introduce ImageResourceInfo::setIsPlaceholder() (Closed)
Patch Set: Rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool hasCacheControlNoStoreHeader() const override { 95 bool hasCacheControlNoStoreHeader() const override {
96 return m_resource->hasCacheControlNoStoreHeader(); 96 return m_resource->hasCacheControlNoStoreHeader();
97 } 97 }
98 const ResourceError& resourceError() const override { 98 const ResourceError& resourceError() const override {
99 return m_resource->resourceError(); 99 return m_resource->resourceError();
100 } 100 }
101 101
102 void decodeError(bool allDataReceived) override { 102 void decodeError(bool allDataReceived) override {
103 m_resource->decodeError(allDataReceived); 103 m_resource->decodeError(allDataReceived);
104 } 104 }
105 void setIsPlaceholder(bool isPlaceholder) override {
106 m_resource->m_isPlaceholder = isPlaceholder;
107 }
105 void setDecodedSize(size_t size) override { 108 void setDecodedSize(size_t size) override {
106 m_resource->setDecodedSize(size); 109 m_resource->setDecodedSize(size);
107 } 110 }
108 void willAddClientOrObserver() override { 111 void willAddClientOrObserver() override {
109 m_resource->willAddClientOrObserver(Resource::MarkAsReferenced); 112 m_resource->willAddClientOrObserver(Resource::MarkAsReferenced);
110 } 113 }
111 void didRemoveClientOrObserver() override { 114 void didRemoveClientOrObserver() override {
112 m_resource->didRemoveClientOrObserver(); 115 m_resource->didRemoveClientOrObserver();
113 } 116 }
114 void emulateLoadStartedForInspector( 117 void emulateLoadStartedForInspector(
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 517
515 void ImageResource::updateImage( 518 void ImageResource::updateImage(
516 PassRefPtr<SharedBuffer> sharedBuffer, 519 PassRefPtr<SharedBuffer> sharedBuffer,
517 ImageResourceContent::UpdateImageOption updateImageOption, 520 ImageResourceContent::UpdateImageOption updateImageOption,
518 bool allDataReceived) { 521 bool allDataReceived) {
519 getContent()->updateImage(std::move(sharedBuffer), updateImageOption, 522 getContent()->updateImage(std::move(sharedBuffer), updateImageOption,
520 allDataReceived); 523 allDataReceived);
521 } 524 }
522 525
523 } // namespace blink 526 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698