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

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

Issue 1296043002: Merge to XFA: Use override in more classes in core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 5 years, 4 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
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 CORE_SRC_FXCRT_FXCRT_POSIX_H_ 7 #ifndef CORE_SRC_FXCRT_FXCRT_POSIX_H_
8 #define CORE_SRC_FXCRT_FXCRT_POSIX_H_ 8 #define CORE_SRC_FXCRT_FXCRT_POSIX_H_
9 9
10 #include "extension.h" 10 #include "extension.h"
11 11
12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \ 12 #if _FXM_PLATFORM_ == _FXM_PLATFORM_LINUX_ || \
13 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \ 13 _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ || \
14 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_ 14 _FXM_PLATFORM_ == _FXM_PLATFORM_ANDROID_
15 class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess { 15 class CFXCRT_FileAccess_Posix : public IFXCRT_FileAccess {
16 public: 16 public:
17 CFXCRT_FileAccess_Posix(); 17 CFXCRT_FileAccess_Posix();
18 virtual ~CFXCRT_FileAccess_Posix(); 18 ~CFXCRT_FileAccess_Posix() override;
19 virtual FX_BOOL Open(const CFX_ByteStringC& fileName, FX_DWORD dwMode); 19
20 virtual FX_BOOL Open(const CFX_WideStringC& fileName, FX_DWORD dwMode); 20 // IFXCRT_FileAccess
21 virtual void Close(); 21 FX_BOOL Open(const CFX_ByteStringC& fileName, FX_DWORD dwMode) override;
22 virtual void Release(); 22 FX_BOOL Open(const CFX_WideStringC& fileName, FX_DWORD dwMode) override;
23 virtual FX_FILESIZE GetSize() const; 23 void Close() override;
24 virtual FX_FILESIZE GetPosition() const; 24 void Release() override;
25 virtual FX_FILESIZE SetPosition(FX_FILESIZE pos); 25 FX_FILESIZE GetSize() const override;
26 virtual size_t Read(void* pBuffer, size_t szBuffer); 26 FX_FILESIZE GetPosition() const override;
27 virtual size_t Write(const void* pBuffer, size_t szBuffer); 27 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
28 virtual size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos); 28 size_t Read(void* pBuffer, size_t szBuffer) override;
29 virtual size_t WritePos(const void* pBuffer, 29 size_t Write(const void* pBuffer, size_t szBuffer) override;
30 size_t szBuffer, 30 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
31 FX_FILESIZE pos); 31 size_t WritePos(const void* pBuffer,
32 virtual FX_BOOL Flush(); 32 size_t szBuffer,
33 virtual FX_BOOL Truncate(FX_FILESIZE szFile); 33 FX_FILESIZE pos) override;
34 FX_BOOL Flush() override;
35 FX_BOOL Truncate(FX_FILESIZE szFile) override;
34 36
35 protected: 37 protected:
36 int32_t m_nFD; 38 int32_t m_nFD;
37 }; 39 };
38 #endif 40 #endif
39 41
40 #endif // CORE_SRC_FXCRT_FXCRT_POSIX_H_ 42 #endif // CORE_SRC_FXCRT_FXCRT_POSIX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698