Lines Matching defs:base
13 #include "base/platform_file.h"
14 #include "base/task_runner.h"
15 #include "net/base/completion_callback.h"
16 #include "net/base/file_stream_whence.h"
17 #include "net/base/net_export.h"
18 #include "net/base/net_log.h"
20 namespace base {
34 const scoped_refptr<base::TaskRunner>& task_runner);
36 // Same as above, but runs async tasks in base::WorkerPool.
41 // |flags| is a bitfield of base::PlatformFileFlags when the file handle was
48 FileStream(base::PlatformFile file,
51 const scoped_refptr<base::TaskRunner>& task_runner);
53 // Same as above, but runs async tasks in base::WorkerPool.
54 FileStream(base::PlatformFile file, int flags, net::NetLog* net_log);
66 // base::PlatformFileFlags.
72 virtual int Open(const base::FilePath& path, int open_flags,
78 // a bitfield of base::PlatformFileFlags
82 virtual int OpenSync(const base::FilePath& path, int open_flags);
242 base::PlatformFile GetPlatformFileForTesting();
247 bool is_async() const { return !!(open_flags_ & base::PLATFORM_FILE_ASYNC); }