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

Side by Side Diff: core/src/fxcrt/fxcrt_posix.h

Issue 1088733002: Kill CFX_Object. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase. Created 5 years, 8 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
« no previous file with comments | « core/src/fxcrt/fxcrt_platforms.h ('k') | core/src/fxcrt/fxcrt_windows.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #ifndef _FXCRT_LINUX_ 7 #ifndef _FXCRT_LINUX_
8 #define _FXCRT_LINUX_ 8 #define _FXCRT_LINUX_
9 #include "extension.h" 9 #include "extension.h"
10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || _FXM_PLATFORM_ == _FXM_PLATFORM_AP PLE_ || _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_ 10 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || _FXM_PLATFORM_ == _FXM_PLATFORM_AP PLE_ || _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
11 class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess, public CFX_Object 11 class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess
12 { 12 {
13 public: 13 public:
14 CFXCRT_FileAccess_Posix(); 14 CFXCRT_FileAccess_Posix();
15 virtual ~CFXCRT_FileAccess_Posix(); 15 virtual ~CFXCRT_FileAccess_Posix();
16 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode); 16 virtual FX_BOOL Open(FX_BSTR fileName, FX_DWORD dwMode);
17 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode); 17 virtual FX_BOOL Open(FX_WSTR fileName, FX_DWORD dwMode);
18 virtual void Close(); 18 virtual void Close();
19 virtual void Release(); 19 virtual void Release();
20 virtual FX_FILESIZE GetSize() const; 20 virtual FX_FILESIZE GetSize() const;
21 virtual FX_FILESIZE GetPosition() const; 21 virtual FX_FILESIZE GetPosition() const;
22 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos); 22 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos);
23 virtual size_t Read(void* pBuffer, size_t szBuffer); 23 virtual size_t Read(void* pBuffer, size_t szBuffer);
24 virtual size_t Write(const void* pBuffer, size_t szBuffer); 24 virtual size_t Write(const void* pBuffer, size_t szBuffer);
25 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILES IZE pos); 25 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILES IZE pos);
26 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, F X_FILESIZE pos); 26 virtual size_t WritePos(const void* pBuffer, size_t szBuffer, F X_FILESIZE pos);
27 virtual FX_BOOL Flush(); 27 virtual FX_BOOL Flush();
28 virtual FX_BOOL Truncate(FX_FILESIZE szFile); 28 virtual FX_BOOL Truncate(FX_FILESIZE szFile);
29 protected: 29 protected:
30 FX_INT32 m_nFD; 30 FX_INT32 m_nFD;
31 }; 31 };
32 #endif 32 #endif
33 #endif 33 #endif
OLDNEW
« no previous file with comments | « core/src/fxcrt/fxcrt_platforms.h ('k') | core/src/fxcrt/fxcrt_windows.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698