summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-04-20 13:13:54 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-04-20 17:51:21 +0000
commit9a2f69f26c136ef4b53285edc28f4e494997f630 (patch)
tree2b1f2459ebc06366d7ee608d8413973f2f9ebe9b /core
parentcfb1944e245e20fe2ce0e94feebc06526db34fa1 (diff)
downloadpdfium-9a2f69f26c136ef4b53285edc28f4e494997f630.tar.xz
Move fxcrt_stream code to fx_stream file
This Cl consolidates the stream code into fx_stream. Change-Id: I22a250b4ca6e342592b81260d2a918ebab7f60a2 Reviewed-on: https://pdfium-review.googlesource.com/4373 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/fxcrt/fx_stream.cpp20
-rw-r--r--core/fxcrt/fxcrt_stream.cpp27
2 files changed, 20 insertions, 27 deletions
diff --git a/core/fxcrt/fx_stream.cpp b/core/fxcrt/fx_stream.cpp
index c60a546ddd..a0086f269e 100644
--- a/core/fxcrt/fx_stream.cpp
+++ b/core/fxcrt/fx_stream.cpp
@@ -305,3 +305,23 @@ CFX_RetainPtr<IFX_MemoryStream> IFX_MemoryStream::Create(uint8_t* pBuffer,
CFX_RetainPtr<IFX_MemoryStream> IFX_MemoryStream::Create(bool bConsecutive) {
return pdfium::MakeRetain<CFX_MemoryStream>(bConsecutive);
}
+
+bool IFX_SeekableWriteStream::WriteBlock(const void* pData, size_t size) {
+ return WriteBlock(pData, GetSize(), size);
+}
+
+bool IFX_SeekableReadStream::IsEOF() {
+ return false;
+}
+
+FX_FILESIZE IFX_SeekableReadStream::GetPosition() {
+ return 0;
+}
+
+size_t IFX_SeekableReadStream::ReadBlock(void* buffer, size_t size) {
+ return 0;
+}
+
+bool IFX_SeekableStream::WriteBlock(const void* buffer, size_t size) {
+ return WriteBlock(buffer, GetSize(), size);
+}
diff --git a/core/fxcrt/fxcrt_stream.cpp b/core/fxcrt/fxcrt_stream.cpp
deleted file mode 100644
index 3afe6323b2..0000000000
--- a/core/fxcrt/fxcrt_stream.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2016 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#include "core/fxcrt/fx_stream.h"
-
-bool IFX_SeekableWriteStream::WriteBlock(const void* pData, size_t size) {
- return WriteBlock(pData, GetSize(), size);
-}
-
-bool IFX_SeekableReadStream::IsEOF() {
- return false;
-}
-
-FX_FILESIZE IFX_SeekableReadStream::GetPosition() {
- return 0;
-}
-
-size_t IFX_SeekableReadStream::ReadBlock(void* buffer, size_t size) {
- return 0;
-}
-
-bool IFX_SeekableStream::WriteBlock(const void* buffer, size_t size) {
- return WriteBlock(buffer, GetSize(), size);
-}