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

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

Issue 1167583003: Move Resource subclasses out of fetch/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/fetch/StyleSheetResourceClient.h ('k') | Source/core/fetch/TextResource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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.
4
5 #ifndef TextResource_h
6 #define TextResource_h
7
8 #include "core/CoreExport.h"
9 #include "core/fetch/ResourcePtr.h"
10
11 namespace blink {
12
13 class TextResourceDecoder;
14
15 class CORE_EXPORT TextResource : public Resource {
16 public:
17 // Returns the decoded data in text form. The data has to be available at
18 // call time.
19 String decodedText() const;
20
21 virtual void setEncoding(const String&) override;
22 virtual String encoding() const override;
23
24 protected:
25 TextResource(const ResourceRequest&, Type, const String& mimeType, const Str ing& charset);
26 virtual ~TextResource();
27
28 private:
29 OwnPtr<TextResourceDecoder> m_decoder;
30 };
31
32 }
33
34 #endif // TextResource_h
OLDNEW
« no previous file with comments | « Source/core/fetch/StyleSheetResourceClient.h ('k') | Source/core/fetch/TextResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698