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

Unified Diff: Source/WebCore/loader/DataUriResource.h

Issue 14188008: Move Data uri handling into WebCore Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/WebCore.gypi ('k') | Source/WebCore/loader/DataUriResource.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/loader/DataUriResource.h
diff --git a/Source/WebCore/loader/archive/ArchiveResource.h b/Source/WebCore/loader/DataUriResource.h
similarity index 68%
copy from Source/WebCore/loader/archive/ArchiveResource.h
copy to Source/WebCore/loader/DataUriResource.h
index 97d6e32f7d205c2c64ec7a37d5e99d5ba810c16a..658d6c866891f9bf482a25a183c4330f34b624bd 100644
--- a/Source/WebCore/loader/archive/ArchiveResource.h
+++ b/Source/WebCore/loader/DataUriResource.h
@@ -26,37 +26,29 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef ArchiveResource_h
-#define ArchiveResource_h
+#ifndef DataUriResource_h
+#define DataUriResource_h
#include "SubstituteResource.h"
namespace WebCore {
-class ArchiveResource : public SubstituteResource {
+class DataUriResource : public SubstituteResource {
public:
- static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&, const ResourceResponse&);
- static PassRefPtr<ArchiveResource> create(PassRefPtr<SharedBuffer>, const KURL&,
- const String& mimeType, const String& textEncoding, const String& frameName,
- const ResourceResponse& = ResourceResponse());
+ static PassRefPtr<DataUriResource> create(PassRefPtr<SharedBuffer>, const KURL&, const ResourceResponse&);
+ static PassRefPtr<DataUriResource> create(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType,
+ const String& textEncoding, const ResourceResponse& = ResourceResponse());
const String& mimeType() const { return m_mimeType; }
const String& textEncoding() const { return m_textEncoding; }
- const String& frameName() const { return m_frameName; }
-
- void ignoreWhenUnarchiving() { m_shouldIgnoreWhenUnarchiving = true; }
- bool shouldIgnoreWhenUnarchiving() const { return m_shouldIgnoreWhenUnarchiving; }
private:
- ArchiveResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textEncoding, const String& frameName, const ResourceResponse&);
+ DataUriResource(PassRefPtr<SharedBuffer>, const KURL&, const String& mimeType, const String& textEncoding, const ResourceResponse&);
String m_mimeType;
String m_textEncoding;
- String m_frameName;
-
- bool m_shouldIgnoreWhenUnarchiving;
};
}
-#endif // ArchiveResource_h
+#endif // DataUriResource_h
« no previous file with comments | « Source/WebCore/WebCore.gypi ('k') | Source/WebCore/loader/DataUriResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698