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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/loader/resource/ImageResourceContent.h" 5 #include "core/loader/resource/ImageResourceContent.h"
6 6
7 #include "core/loader/resource/ImageResource.h" 7 #include "core/loader/resource/ImageResource.h"
8 #include "core/loader/resource/ImageResourceInfo.h" 8 #include "core/loader/resource/ImageResourceInfo.h"
9 #include "core/loader/resource/ImageResourceObserver.h" 9 #include "core/loader/resource/ImageResourceObserver.h"
10 #include "core/svg/graphics/SVGImage.h" 10 #include "core/svg/graphics/SVGImage.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 bool isAccessAllowed( 47 bool isAccessAllowed(
48 SecurityOrigin*, 48 SecurityOrigin*,
49 DoesCurrentFrameHaveSingleSecurityOrigin) const override { 49 DoesCurrentFrameHaveSingleSecurityOrigin) const override {
50 return true; 50 return true;
51 } 51 }
52 bool hasCacheControlNoStoreHeader() const override { return false; } 52 bool hasCacheControlNoStoreHeader() const override { return false; }
53 const ResourceError& resourceError() const override { return m_error; } 53 const ResourceError& resourceError() const override { return m_error; }
54 54
55 void decodeError(bool allDataReceived) override {} 55 void decodeError(bool allDataReceived) override {}
56 void setDecodedSize(size_t) override {} 56 void setDecodedSize(size_t) override {}
57 void setIsPlaceholder(bool) override {}
57 void willAddClientOrObserver() override {} 58 void willAddClientOrObserver() override {}
58 void didRemoveClientOrObserver() override {} 59 void didRemoveClientOrObserver() override {}
59 void emulateLoadStartedForInspector( 60 void emulateLoadStartedForInspector(
60 ResourceFetcher*, 61 ResourceFetcher*,
61 const KURL&, 62 const KURL&,
62 const AtomicString& initiatorName) override {} 63 const AtomicString& initiatorName) override {}
63 64
64 const KURL m_url; 65 const KURL m_url;
65 const ResourceResponse m_response; 66 const ResourceResponse m_response;
66 const ResourceError m_error; 67 const ResourceError m_error;
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 479
479 const ResourceResponse& ImageResourceContent::response() const { 480 const ResourceResponse& ImageResourceContent::response() const {
480 return m_info->response(); 481 return m_info->response();
481 } 482 }
482 483
483 const ResourceError& ImageResourceContent::resourceError() const { 484 const ResourceError& ImageResourceContent::resourceError() const {
484 return m_info->resourceError(); 485 return m_info->resourceError();
485 } 486 }
486 487
487 } // namespace blink 488 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698