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

Side by Side Diff: core/fxcrt/fxcrt_platforms.h

Issue 1994323002: Remove Release() from IFXCRT_FileAccess (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: include <utility>. Created 4 years, 7 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/fxcrt/fx_extension.cpp ('k') | core/fxcrt/fxcrt_platforms.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef CORE_FXCRT_FXCRT_PLATFORMS_H_
8 #define CORE_FXCRT_FXCRT_PLATFORMS_H_
9
10 #include "core/fxcrt/extension.h"
11
12 #if _FX_OS_ == _FX_ANDROID_
13 void FXCRT_GetFileModeString(uint32_t dwModes, CFX_ByteString& bsMode);
14 void FXCRT_GetFileModeString(uint32_t dwModes, CFX_WideString& wsMode);
15 class CFXCRT_FileAccess_CRT : public IFXCRT_FileAccess {
16 public:
17 CFXCRT_FileAccess_CRT();
18 ~CFXCRT_FileAccess_CRT() override;
19
20 // IFXCRT_FileAccess
21 FX_BOOL Open(const CFX_ByteStringC& fileName, uint32_t dwMode) override;
22 FX_BOOL Open(const CFX_WideStringC& fileName, uint32_t dwMode) override;
23 void Close() override;
24 void Release() override;
25 FX_FILESIZE GetSize() const override;
26 FX_FILESIZE GetPosition() const override;
27 FX_FILESIZE SetPosition(FX_FILESIZE pos) override;
28 size_t Read(void* pBuffer, size_t szBuffer) override;
29 size_t Write(const void* pBuffer, size_t szBuffer) override;
30 size_t ReadPos(void* pBuffer, size_t szBuffer, FX_FILESIZE pos) override;
31 size_t WritePos(const void* pBuffer,
32 size_t szBuffer,
33 FX_FILESIZE pos) override;
34 FX_BOOL Flush() override;
35 FX_BOOL Truncate(FX_FILESIZE szFile) override;
36
37 protected:
38 FXSYS_FILE* m_hFile;
39 };
40 #endif
41
42 #endif // CORE_FXCRT_FXCRT_PLATFORMS_H_
OLDNEW
« no previous file with comments | « core/fxcrt/fx_extension.cpp ('k') | core/fxcrt/fxcrt_platforms.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698