Home
last modified time | relevance | path

Searched refs:kMaxBytesToSniff (Results 1 – 9 of 9) sorted by relevance

/external/chromium_org/chrome/browser/media_galleries/fileapi/
Dmtp_file_stream_reader.cc96 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()
Dnative_media_file_util.cc82 char buffer[net::kMaxBytesToSniff]; in IsMediaFile()
85 int64 len = file.Read(0, buffer, net::kMaxBytesToSniff); in IsMediaFile()
/external/chromium_org/net/base/
Dmime_sniffer.h20 const int kMaxBytesToSniff = 1024; variable
Dmime_sniffer.cc388 DCHECK_LE(static_cast<int>(max_size), kMaxBytesToSniff); in TruncateSize()
687 const bool is_truncated = TruncateSize(kMaxBytesToSniff, &size); in SniffBinary()
/external/chromium_org/chrome/browser/extensions/api/file_handlers/
Dmime_util.cc29 std::vector<char> content(net::kMaxBytesToSniff); in SniffMimeType()
/external/chromium_org/content/browser/loader/
Dredirect_to_file_resource_handler.cc358 return buf_->RemainingCapacity() <= (2 * net::kMaxBytesToSniff); in BufIsFull()
Dbuffered_resource_handler.cc169 DCHECK_GE(read_buffer_size_, net::kMaxBytesToSniff * 2); in OnWillRead()
/external/chromium_org/chrome/browser/chromeos/drive/
Dfile_cache.cc470 std::vector<char> content(net::kMaxBytesToSniff); in RecoverFilesFromCacheDirectory()
/external/chromium_org/chrome/browser/extensions/api/media_galleries/
Dmedia_galleries_api.cc951 reader->SetByteRange(0, net::kMaxBytesToSniff); in OnPreferencesInit()