1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 #include "core/CoreExport.h"
9 #include "core/fetch/ResourcePtr.h"
13 class TextResourceDecoder
;
15 class CORE_EXPORT TextResource
: public Resource
{
17 // Returns the decoded data in text form. The data has to be available at
19 String
decodedText() const;
21 void setEncoding(const String
&) override
;
22 String
encoding() const override
;
25 TextResource(const ResourceRequest
&, Type
, const String
& mimeType
, const String
& charset
);
26 ~TextResource() override
;
29 OwnPtr
<TextResourceDecoder
> m_decoder
;
34 #endif // TextResource_h