Lines Matching refs:base
5 #include "net/base/file_stream.h"
9 #include "base/file_path.h"
10 #include "base/logging.h"
11 #include "base/message_loop.h"
12 #include "base/metrics/histogram.h"
13 #include "base/threading/thread_restrictions.h"
14 #include "net/base/net_errors.h"
79 base::TimeTicks start = base::TimeTicks::Now();
87 base::TimeTicks::Now() - start);
127 FileStream::FileStream(base::PlatformFile file, int flags)
131 // If the file handle is opened with base::PLATFORM_FILE_ASYNC, we need to
133 if (flags & base::PLATFORM_FILE_ASYNC) {
163 file_ = base::CreatePlatformFile(path, open_flags_, NULL, NULL);
170 if (open_flags_ & base::PLATFORM_FILE_ASYNC) {
202 base::ThreadRestrictions::AssertIOAllowed();
225 DCHECK(open_flags_ & base::PLATFORM_FILE_READ);
234 base::ThreadRestrictions::AssertIOAllowed();
285 DCHECK(open_flags_ & base::PLATFORM_FILE_WRITE);
294 base::ThreadRestrictions::AssertIOAllowed();
318 base::ThreadRestrictions::AssertIOAllowed();
323 DCHECK(open_flags_ & base::PLATFORM_FILE_WRITE);
335 base::ThreadRestrictions::AssertIOAllowed();
341 DCHECK(open_flags_ & base::PLATFORM_FILE_WRITE);