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

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

Issue 732323004: Add use counter for credentialed CORS access from null origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tweak spelling Created 6 years 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 | « Source/core/fetch/CrossOriginAccessControl.cpp ('k') | 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 enum SizeType { 79 enum SizeType {
80 NormalSize, // Report the size of the image associated with a certain re nderer 80 NormalSize, // Report the size of the image associated with a certain re nderer
81 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically. 81 IntrinsicSize // Report the intrinsic size, i.e. ignore whatever has bee n set extrinsically.
82 }; 82 };
83 // This method takes a zoom multiplier that can be used to increase the natu ral size of the image by the zoom. 83 // This method takes a zoom multiplier that can be used to increase the natu ral size of the image by the zoom.
84 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image. 84 LayoutSize imageSizeForRenderer(const RenderObject*, float multiplier, SizeT ype = NormalSize); // returns the size of the complete image.
85 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio); 85 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei ght, FloatSize& intrinsicRatio);
86 86
87 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages = false); 87 static void updateBitmapImages(HashSet<ImageResource*>&, bool redecodeImages = false);
88 88
89 bool isAccessAllowed(SecurityOrigin*); 89 bool isAccessAllowed(ExecutionContext*, SecurityOrigin*);
90 90
91 virtual void didAddClient(ResourceClient*) override; 91 virtual void didAddClient(ResourceClient*) override;
92 virtual void didRemoveClient(ResourceClient*) override; 92 virtual void didRemoveClient(ResourceClient*) override;
93 93
94 virtual void allClientsRemoved() override; 94 virtual void allClientsRemoved() override;
95 95
96 virtual void appendData(const char*, unsigned) override; 96 virtual void appendData(const char*, unsigned) override;
97 virtual void error(Resource::Status) override; 97 virtual void error(Resource::Status) override;
98 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon sumerHandle>) override; 98 virtual void responseReceived(const ResourceResponse&, PassOwnPtr<WebDataCon sumerHandle>) override;
99 virtual void finishOnePart() override; 99 virtual void finishOnePart() override;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 OwnPtr<SVGImageCache> m_svgImageCache; 138 OwnPtr<SVGImageCache> m_svgImageCache;
139 bool m_loadingMultipartContent; 139 bool m_loadingMultipartContent;
140 bool m_hasDevicePixelRatioHeaderValue; 140 bool m_hasDevicePixelRatioHeaderValue;
141 }; 141 };
142 142
143 DEFINE_RESOURCE_TYPE_CASTS(Image); 143 DEFINE_RESOURCE_TYPE_CASTS(Image);
144 144
145 } 145 }
146 146
147 #endif 147 #endif
OLDNEW
« no previous file with comments | « Source/core/fetch/CrossOriginAccessControl.cpp ('k') | Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698