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

Unified Diff: sky/engine/core/html/parser/TextResourceDecoder.cpp

Issue 1215103007: Remove remaining HTML elements (Closed) Base URL: git@github.com:domokit/mojo.git@master
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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/html/parser/TextResourceDecoder.h ('k') | sky/engine/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/parser/TextResourceDecoder.cpp
diff --git a/sky/engine/core/html/parser/TextResourceDecoder.cpp b/sky/engine/core/html/parser/TextResourceDecoder.cpp
deleted file mode 100644
index c71df30c72423ba4408ec7ca00d3353f26c81840..0000000000000000000000000000000000000000
--- a/sky/engine/core/html/parser/TextResourceDecoder.cpp
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/core/html/parser/TextResourceDecoder.h"
-
-#include "sky/engine/wtf/text/TextCodec.h"
-#include "sky/engine/wtf/text/TextEncodingRegistry.h"
-
-namespace blink {
-
-TextResourceDecoder::TextResourceDecoder()
- : m_sawError(false)
-{
-}
-
-TextResourceDecoder::~TextResourceDecoder()
-{
-}
-
-const WTF::TextEncoding& TextResourceDecoder::encoding() const
-{
- return WTF::UTF8Encoding();
-}
-
-String TextResourceDecoder::decode(const char* data, size_t len)
-{
- if (!m_codec)
- m_codec = newTextCodec(encoding());
- return m_codec->decode(data, len, WTF::DoNotFlush, false, m_sawError);
-}
-
-String TextResourceDecoder::flush()
-{
- if (!m_codec)
- m_codec = newTextCodec(encoding());
-
- String result = m_codec->decode(0, 0, WTF::FetchEOF, false, m_sawError);
- m_codec.clear();
- return result;
-}
-
-}
« no previous file with comments | « sky/engine/core/html/parser/TextResourceDecoder.h ('k') | sky/engine/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698