OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TextResource_h | 5 #ifndef TextResource_h |
6 #define TextResource_h | 6 #define TextResource_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/fetch/Resource.h" | 9 #include "platform/loader/fetch/Resource.h" |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class TextResourceDecoder; | 14 class TextResourceDecoder; |
15 | 15 |
16 class CORE_EXPORT TextResource : public Resource { | 16 class CORE_EXPORT TextResource : public Resource { |
17 public: | 17 public: |
18 // Returns the decoded data in text form. The data has to be available at | 18 // Returns the decoded data in text form. The data has to be available at |
19 // call time. | 19 // call time. |
(...skipping 10 matching lines...) Expand all Loading... |
30 const String& charset); | 30 const String& charset); |
31 ~TextResource() override; | 31 ~TextResource() override; |
32 | 32 |
33 private: | 33 private: |
34 std::unique_ptr<TextResourceDecoder> m_decoder; | 34 std::unique_ptr<TextResourceDecoder> m_decoder; |
35 }; | 35 }; |
36 | 36 |
37 } // namespace blink | 37 } // namespace blink |
38 | 38 |
39 #endif // TextResource_h | 39 #endif // TextResource_h |
OLD | NEW |