Searched refs:kMaxBytesToSniff (Results 1 – 9 of 9) sorted by relevance
96 if (current_offset_ == 0 && buf_len >= net::kMaxBytesToSniff) { in Read()103 header_buf = new net::IOBuffer(net::kMaxBytesToSniff); in Read()104 header_buf_len = net::kMaxBytesToSniff; in Read()
82 char buffer[net::kMaxBytesToSniff]; in IsMediaFile()85 int64 len = file.Read(0, buffer, net::kMaxBytesToSniff); in IsMediaFile()
20 const int kMaxBytesToSniff = 1024; variable
388 DCHECK_LE(static_cast<int>(max_size), kMaxBytesToSniff); in TruncateSize()687 const bool is_truncated = TruncateSize(kMaxBytesToSniff, &size); in SniffBinary()
29 std::vector<char> content(net::kMaxBytesToSniff); in SniffMimeType()
358 return buf_->RemainingCapacity() <= (2 * net::kMaxBytesToSniff); in BufIsFull()
169 DCHECK_GE(read_buffer_size_, net::kMaxBytesToSniff * 2); in OnWillRead()
470 std::vector<char> content(net::kMaxBytesToSniff); in RecoverFilesFromCacheDirectory()
951 reader->SetByteRange(0, net::kMaxBytesToSniff); in OnPreferencesInit()