Home | History | Annotate | Download | only in base

Lines Matching refs:base

8 #include "net/base/file_stream.h"
16 #include "base/basictypes.h"
17 #include "base/callback.h"
18 #include "base/eintr_wrapper.h"
19 #include "base/file_path.h"
20 #include "base/logging.h"
21 #include "base/message_loop.h"
22 #include "base/metrics/histogram.h"
23 #include "base/string_util.h"
24 #include "base/task.h"
25 #include "base/threading/thread_restrictions.h"
26 #include "base/threading/worker_pool.h"
27 #include "base/synchronization/waitable_event.h"
28 #include "net/base/net_errors.h"
61 int ReadFile(base::PlatformFile file, char* buf, int buf_len) {
62 base::ThreadRestrictions::AssertIOAllowed();
72 void ReadFileTask(base::PlatformFile file,
82 int WriteFile(base::PlatformFile file, const char* buf, int buf_len) {
83 base::ThreadRestrictions::AssertIOAllowed();
90 void WriteFileTask(base::PlatformFile file,
100 int FlushFile(base::PlatformFile file) {
101 base::ThreadRestrictions::AssertIOAllowed();
140 base::PlatformFile file, char* buf, int buf_len,
143 base::PlatformFile file, const char* buf, int buf_len,
172 base::WaitableEvent background_io_completed_;
199 base::TimeTicks start = base::TimeTicks::Now();
204 base::TimeTicks::Now() - start);
210 base::PlatformFile file, char* buf, int buf_len,
215 base::WorkerPool::PostTask(FROM_HERE,
224 base::PlatformFile file, const char* buf, int buf_len,
229 base::WorkerPool::PostTask(FROM_HERE,
271 : file_(base::kInvalidPlatformFileValue),
277 FileStream::FileStream(base::PlatformFile file, int flags)
281 // If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to
283 if (flags & base::PLATFORM_FILE_ASYNC) {
297 if (file_ != base::kInvalidPlatformFileValue) {
301 file_ = base::kInvalidPlatformFileValue;
312 file_ = base::CreatePlatformFile(path, open_flags_, NULL, NULL);
313 if (file_ == base::kInvalidPlatformFileValue) {
317 if (open_flags_ & base::PLATFORM_FILE_ASYNC) {
325 return file_ != base::kInvalidPlatformFileValue;
329 base::ThreadRestrictions::AssertIOAllowed();
346 base::ThreadRestrictions::AssertIOAllowed();
372 DCHECK(open_flags_ & base::PLATFORM_FILE_READ);
375 DCHECK(open_flags_ & base::PLATFORM_FILE_ASYNC);
415 DCHECK(open_flags_ & base::PLATFORM_FILE_ASYNC);
426 base::ThreadRestrictions::AssertIOAllowed();
432 DCHECK(open_flags_ & base::PLATFORM_FILE_WRITE);