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

Side by Side Diff: Source/core/fetch/ImageResource.h

Issue 665613002: Move /fetch to use C++11 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.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) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void destroyDecodedDataIfPossible() override; 114 virtual void destroyDecodedDataIfPossible() override;
115 115
116 private: 116 private:
117 void clear(); 117 void clear();
118 118
119 void setCustomAcceptHeader(); 119 void setCustomAcceptHeader();
120 void createImage(); 120 void createImage();
121 void updateImage(bool allDataReceived); 121 void updateImage(bool allDataReceived);
122 void clearImage(); 122 void clearImage();
123 // If not null, changeRect is the changed part of the image. 123 // If not null, changeRect is the changed part of the image.
124 void notifyObservers(const IntRect* changeRect = 0); 124 void notifyObservers(const IntRect* changeRect = nullptr);
125 125
126 virtual void switchClientsToRevalidatedResource() override; 126 virtual void switchClientsToRevalidatedResource() override;
127 127
128 typedef pair<IntSize, float> SizeAndZoom; 128 typedef pair<IntSize, float> SizeAndZoom;
129 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques ts; 129 typedef HashMap<const ImageResourceClient*, SizeAndZoom> ContainerSizeReques ts;
130 ContainerSizeRequests m_pendingContainerSizeRequests; 130 ContainerSizeRequests m_pendingContainerSizeRequests;
131 float m_devicePixelRatioHeaderValue; 131 float m_devicePixelRatioHeaderValue;
132 132
133 RefPtr<blink::Image> m_image; 133 RefPtr<blink::Image> m_image;
134 OwnPtr<SVGImageCache> m_svgImageCache; 134 OwnPtr<SVGImageCache> m_svgImageCache;
135 bool m_loadingMultipartContent; 135 bool m_loadingMultipartContent;
136 bool m_hasDevicePixelRatioHeaderValue; 136 bool m_hasDevicePixelRatioHeaderValue;
137 }; 137 };
138 138
139 DEFINE_RESOURCE_TYPE_CASTS(Image); 139 DEFINE_RESOURCE_TYPE_CASTS(Image);
140 140
141 } 141 }
142 142
143 #endif 143 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698