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

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

Issue 2510613002: Loading: move TextResource to core/loader/resource (Closed)
Patch Set: fix rebase error Created 4 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
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/Resource.h"
10 #include <memory>
11
12 namespace blink {
13
14 class TextResourceDecoder;
15
16 class CORE_EXPORT TextResource : public Resource {
17 public:
18 // Returns the decoded data in text form. The data has to be available at
19 // call time.
20 String decodedText() const;
21
22 void setEncoding(const String&) override;
23 String encoding() const override;
24
25 protected:
26 TextResource(const ResourceRequest&,
27 Type,
28 const ResourceLoaderOptions&,
29 const String& mimeType,
30 const String& charset);
31 ~TextResource() override;
32
33 private:
34 std::unique_ptr<TextResourceDecoder> m_decoder;
35 };
36
37 } // namespace blink
38
39 #endif // TextResource_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/fetch/DEPS ('k') | third_party/WebKit/Source/core/fetch/TextResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698