Home
last modified time | relevance | path

Searched refs:PlatformFile (Results 1 – 25 of 258) sorted by relevance

1234567891011

/external/chromium_org/base/
Dplatform_file.h128 typedef HANDLE PlatformFile; typedef
129 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
132 typedef int PlatformFile; typedef
133 const PlatformFile kInvalidPlatformFileValue = -1;
144 BASE_EXPORT PlatformFile CreatePlatformFile(const FilePath& name,
151 BASE_EXPORT PlatformFile CreatePlatformFileUnsafe(const FilePath& name,
156 BASE_EXPORT FILE* FdopenPlatformFile(PlatformFile file, const char* mode);
159 BASE_EXPORT bool ClosePlatformFile(PlatformFile file);
164 BASE_EXPORT int64 SeekPlatformFile(PlatformFile file,
173 BASE_EXPORT int ReadPlatformFile(PlatformFile file, int64 offset,
[all …]
Dplatform_file_posix.cc49 static bool IsOpenAppend(PlatformFile file) { in IsOpenAppend()
53 static int CallFtruncate(PlatformFile file, int64 length) { in CallFtruncate()
57 static int CallFsync(PlatformFile file) { in CallFsync()
61 static int CallFutimes(PlatformFile file, const struct timeval times[2]) { in CallFutimes()
78 static PlatformFileError CallFctnlFlock(PlatformFile file, bool do_lock) { in CallFctnlFlock()
90 static bool IsOpenAppend(PlatformFile file) { in IsOpenAppend()
97 static int CallFtruncate(PlatformFile file, int64 length) { in CallFtruncate()
102 static int CallFsync(PlatformFile file) { in CallFsync()
107 static int CallFutimes(PlatformFile file, const struct timeval times[2]) { in CallFutimes()
112 static PlatformFileError CallFctnlFlock(PlatformFile file, bool do_lock) { in CallFctnlFlock()
[all …]
Dplatform_file_win.cc15 PlatformFile CreatePlatformFileUnsafe(const FilePath& name, in CreatePlatformFileUnsafe()
106 FILE* FdopenPlatformFile(PlatformFile file, const char* mode) { in FdopenPlatformFile()
115 bool ClosePlatformFile(PlatformFile file) { in ClosePlatformFile()
120 int64 SeekPlatformFile(PlatformFile file, in SeekPlatformFile()
135 int ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) { in ReadPlatformFile()
156 int ReadPlatformFileAtCurrentPos(PlatformFile file, char* data, int size) { in ReadPlatformFileAtCurrentPos()
170 int ReadPlatformFileNoBestEffort(PlatformFile file, int64 offset, char* data, in ReadPlatformFileNoBestEffort()
175 int ReadPlatformFileCurPosNoBestEffort(PlatformFile file, in ReadPlatformFileCurPosNoBestEffort()
180 int WritePlatformFile(PlatformFile file, int64 offset, in WritePlatformFile()
200 int WritePlatformFileAtCurrentPos(PlatformFile file, const char* data, in WritePlatformFileAtCurrentPos()
[all …]
Dplatform_file_unittest.cc17 int ReadFully(PlatformFile file, int64 offset, char* data, int size) { in ReadFully()
23 int WriteFully(PlatformFile file, int64 offset, in WriteFully()
30 TEST(PlatformFile, CreatePlatformFile) { in TEST() argument
37 PlatformFile file = CreatePlatformFile( in TEST()
109 TEST(PlatformFile, DeleteOpenFile) { in TEST() argument
117 PlatformFile file = CreatePlatformFile( in TEST()
129 PlatformFile same_file = CreatePlatformFile( in TEST()
145 TEST(PlatformFile, ReadWritePlatformFile) { in TEST() argument
149 PlatformFile file = CreatePlatformFile( in TEST()
224 TEST(PlatformFile, AppendPlatformFile) { in TEST() argument
[all …]
/external/chromium/base/
Dplatform_file.h24 typedef HANDLE PlatformFile; typedef
25 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
27 typedef int PlatformFile;
28 const PlatformFile kInvalidPlatformFileValue = -1;
102 BASE_API PlatformFile CreatePlatformFile(const FilePath& name,
108 BASE_API bool ClosePlatformFile(PlatformFile file);
112 BASE_API int ReadPlatformFile(PlatformFile file, int64 offset,
118 BASE_API int WritePlatformFile(PlatformFile file, int64 offset,
124 BASE_API bool TruncatePlatformFile(PlatformFile file, int64 length);
127 BASE_API bool FlushPlatformFile(PlatformFile file);
[all …]
Dplatform_file_posix.cc33 PlatformFile CreatePlatformFile(const FilePath& name, int flags, in CreatePlatformFile()
138 bool ClosePlatformFile(PlatformFile file) { in ClosePlatformFile()
142 int ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) { in ReadPlatformFile()
149 int WritePlatformFile(PlatformFile file, int64 offset, in WritePlatformFile()
157 bool TruncatePlatformFile(PlatformFile file, int64 length) { in TruncatePlatformFile()
161 bool FlushPlatformFile(PlatformFile file) { in FlushPlatformFile()
165 bool TouchPlatformFile(PlatformFile file, const base::Time& last_access_time, in TouchPlatformFile()
182 bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) { in GetPlatformFileInfo()
Dfile_util_proxy.cc162 base::PlatformFile file_handle_;
210 base::PlatformFile file_handle_;
237 RelayClose(base::PlatformFile file_handle, in RelayClose()
250 base::PlatformFile file_handle_;
276 base::PlatformFile handle = base::CreatePlatformFile( in RunWork()
500 base::PlatformFile file, in RelayGetFileInfoFromPlatformFile()
520 base::PlatformFile file_;
526 RelayRead(base::PlatformFile file, in RelayRead()
554 base::PlatformFile file_;
564 RelayWrite(base::PlatformFile file, in RelayWrite()
[all …]
Dfile_util_proxy.h74 PlatformFile,
100 PlatformFile file,
154 PlatformFile file,
164 PlatformFile file,
173 PlatformFile file,
191 PlatformFile file,
207 PlatformFile file,
Dplatform_file_win.cc13 PlatformFile CreatePlatformFile(const FilePath& name, in CreatePlatformFile()
107 bool ClosePlatformFile(PlatformFile file) { in ClosePlatformFile()
112 int ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) { in ReadPlatformFile()
133 int WritePlatformFile(PlatformFile file, int64 offset, in WritePlatformFile()
153 bool TruncatePlatformFile(PlatformFile file, int64 length) { in TruncatePlatformFile()
179 bool FlushPlatformFile(PlatformFile file) { in FlushPlatformFile()
184 bool TouchPlatformFile(PlatformFile file, const base::Time& last_access_time, in TouchPlatformFile()
196 bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) { in GetPlatformFileInfo()
/external/chromium_org/base/files/
Dfile_util_proxy.h45 typedef Callback<PlatformFileError(PlatformFile*, bool*)> CreateOrOpenTask;
46 typedef Callback<PlatformFileError(PlatformFile)> CloseTask;
78 PlatformFile,
93 PlatformFile file,
111 PlatformFile file,
125 PlatformFile file,
135 PlatformFile file,
155 PlatformFile file,
173 PlatformFile file,
186 PlatformFile,
Dfile_util_proxy.cc56 PlatformFile file_handle_;
98 PlatformFile file_handle_;
118 void RunWorkForPlatformFile(PlatformFile file) { in RunWorkForPlatformFile()
142 void RunWork(PlatformFile file, int64 offset) { in RunWork()
170 void RunWork(PlatformFile file, int64 offset) { in RunWork()
192 PlatformFile* file_handle, bool* created) { in CreateOrOpenAdapter()
204 PlatformFileError CloseAdapter(PlatformFile file_handle) { in CloseAdapter()
254 base::PlatformFile file_handle, in Close()
279 PlatformFile file, in GetFileInfoFromPlatformFile()
303 PlatformFile file, in Read()
[all …]
Dfile.h28 typedef HANDLE PlatformFile; typedef
30 typedef int PlatformFile;
150 explicit File(PlatformFile platform_file);
174 PlatformFile GetPlatformFile() const { return file_; } in GetPlatformFile()
175 PlatformFile TakePlatformFile();
265 void SetPlatformFile(PlatformFile file);
270 PlatformFile file_;
Dfile_posix.cc51 static bool IsOpenAppend(PlatformFile file) { in IsOpenAppend()
55 static int CallFtruncate(PlatformFile file, int64 length) { in CallFtruncate()
59 static int CallFsync(PlatformFile file) { in CallFsync()
63 static int CallFutimes(PlatformFile file, const struct timeval times[2]) { in CallFutimes()
80 static File::Error CallFctnlFlock(PlatformFile file, bool do_lock) { in CallFctnlFlock()
92 static bool IsOpenAppend(PlatformFile file) { in IsOpenAppend()
99 static int CallFtruncate(PlatformFile file, int64 length) { in CallFtruncate()
104 static int CallFsync(PlatformFile file) { in CallFsync()
109 static int CallFutimes(PlatformFile file, const struct timeval times[2]) { in CallFutimes()
114 static File::Error CallFctnlFlock(PlatformFile file, bool do_lock) { in CallFctnlFlock()
[all …]
/external/chromium_org/chrome/common/media_galleries/
Dpicasa_types.h61 base::PlatformFile indicator_file;
63 base::PlatformFile category_file;
64 base::PlatformFile date_file;
65 base::PlatformFile filename_file;
66 base::PlatformFile name_file;
67 base::PlatformFile token_file;
68 base::PlatformFile uid_file;
/external/chromium/webkit/glue/
Dwebfileutilities_impl.h34 virtual base::PlatformFile openFile(const WebKit::WebString& path, int mode);
35 virtual void closeFile(base::PlatformFile& handle);
36 virtual long long seekFile(base::PlatformFile handle,
39 virtual bool truncateFile(base::PlatformFile handle, long long offset);
40 virtual int readFromFile(base::PlatformFile handle, char* data, int length);
41 virtual int writeToFile(base::PlatformFile handle,
/external/chromium_org/chrome/browser/chromeos/drive/
Dlocal_file_reader.cc31 base::PlatformFile* platform_file) { in OpenAndSeekOnBlockingPool()
40 base::PlatformFile file = in OpenAndSeekOnBlockingPool()
64 int ReadOnBlockingPool(base::PlatformFile platform_file, in ReadOnBlockingPool()
76 base::PlatformFile platform_file) { in PostCloseIfNeeded()
100 base::PlatformFile* ptr() { return &platform_file_; } in ptr()
102 base::PlatformFile release() { in release()
103 base::PlatformFile result = platform_file_; in release()
110 base::PlatformFile platform_file_;
/external/chromium_org/chrome/browser/extensions/api/messaging/
Dnative_process_launcher.cc85 base::PlatformFile read_file,
86 base::PlatformFile write_file);
90 base::PlatformFile read_file,
91 base::PlatformFile write_file);
205 base::PlatformFile read_file; in DoLaunchOnThreadPool()
206 base::PlatformFile write_file; in DoLaunchOnThreadPool()
219 base::PlatformFile read_file, in CallCallbackOnIOThread()
220 base::PlatformFile write_file) { in CallCallbackOnIOThread()
247 base::PlatformFile read_file, in PostResult()
248 base::PlatformFile write_file) { in PostResult()
Dnative_process_launcher.h38 base::PlatformFile read_file,
39 base::PlatformFile write_file)> LaunchedCallback;
68 base::PlatformFile* read_file,
69 base::PlatformFile* write_file);
/external/chromium_org/ppapi/tests/
Dtest_broker.cc42 typedef HANDLE PlatformFile; typedef
43 const PlatformFile kInvalidPlatformFileValue = INVALID_HANDLE_VALUE;
47 typedef int PlatformFile; typedef
48 const PlatformFile kInvalidPlatformFileValue = -1;
52 PlatformFile IntToPlatformFile(int32_t handle) { in IntToPlatformFile()
83 bool ReadMessage(PlatformFile file, size_t message_len, char* message) { in ReadMessage()
104 bool WriteMessage(PlatformFile file, size_t message_len, const char* message) { in WriteMessage()
125 bool VerifyMessage(PlatformFile file, size_t message_len, const char* message) { in VerifyMessage()
133 bool ClosePlatformFile(PlatformFile file) { in ClosePlatformFile()
174 PlatformFile file = IntToPlatformFile(handle); in OnInstanceConnected()
[all …]
/external/chromium_org/remoting/host/native_messaging/
Dnative_messaging_channel.cc20 base::PlatformFile DuplicatePlatformFile(base::PlatformFile handle) { in DuplicatePlatformFile()
21 base::PlatformFile result; in DuplicatePlatformFile()
48 base::PlatformFile input, in NativeMessagingChannel()
49 base::PlatformFile output) in NativeMessagingChannel()
/external/chromium_org/components/nacl/browser/
Dpnacl_host.h32 typedef base::Callback<void(base::PlatformFile)> TempFileCallback;
33 typedef base::Callback<void(base::PlatformFile, bool is_hit)> NexeFdCallback;
115 base::PlatformFile nexe_fd;
143 void OnTempFileReturn(const TranslationID& id, base::PlatformFile fd);
149 base::PlatformFile fd);
156 static int CopyBufferToFile(base::PlatformFile fd,
/external/chromium_org/remoting/host/it2me/
Dit2me_native_messaging_host_main.cc22 base::PlatformFile read_file = GetStdHandle(STD_INPUT_HANDLE); in It2MeNativeMessagingHostMain()
23 base::PlatformFile write_file = GetStdHandle(STD_OUTPUT_HANDLE); in It2MeNativeMessagingHostMain()
25 base::PlatformFile read_file = STDIN_FILENO; in It2MeNativeMessagingHostMain()
26 base::PlatformFile write_file = STDOUT_FILENO; in It2MeNativeMessagingHostMain()
/external/chromium/net/base/
Dfile_stream_posix.cc61 int ReadFile(base::PlatformFile file, char* buf, int buf_len) { in ReadFile()
72 void ReadFileTask(base::PlatformFile file, in ReadFileTask()
82 int WriteFile(base::PlatformFile file, const char* buf, int buf_len) { in WriteFile()
90 void WriteFileTask(base::PlatformFile file, in WriteFileTask()
100 int FlushFile(base::PlatformFile file) { in FlushFile()
140 base::PlatformFile file, char* buf, int buf_len,
143 base::PlatformFile file, const char* buf, int buf_len,
210 base::PlatformFile file, char* buf, int buf_len, in InitiateAsyncRead()
224 base::PlatformFile file, const char* buf, int buf_len, in InitiateAsyncWrite()
277 FileStream::FileStream(base::PlatformFile file, int flags) in FileStream()
/external/chromium/net/disk_cache/
Dfile.h39 explicit File(base::PlatformFile file);
46 base::PlatformFile platform_file() const;
81 base::PlatformFile platform_file_; // Regular, asynchronous IO handle.
82 base::PlatformFile sync_platform_file_; // Synchronous IO handle.
/external/chromium_org/net/base/
Dfile_stream_context.h64 Context(base::PlatformFile file,
93 base::PlatformFile file() const { return file_; } in file()
138 OpenResult(base::PlatformFile file, IOResult error_code);
139 base::PlatformFile file;
182 void CancelIo(base::PlatformFile) {} in CancelIo() argument
217 base::PlatformFile file_;

1234567891011