Home
last modified time | relevance | path

Searched refs:byte_range (Results 1 – 13 of 13) sorted by relevance

/external/chromium_org/android_webview/browser/net/
Dinput_stream_reader.cc25 int InputStreamReader::Seek(const net::HttpByteRange& byte_range) { in Seek() argument
27 net::HttpByteRange verified_byte_range(byte_range); in Seek()
54 int InputStreamReader::VerifyRequestedRange(net::HttpByteRange* byte_range, in VerifyRequestedRange() argument
65 if (!byte_range->ComputeBounds(size)) in VerifyRequestedRange()
68 size = byte_range->last_byte_position() - in VerifyRequestedRange()
69 byte_range->first_byte_position() + 1; in VerifyRequestedRange()
77 const net::HttpByteRange& byte_range) { in SkipToRequestedRange() argument
81 if (byte_range.IsValid() && byte_range.first_byte_position() > 0) { in SkipToRequestedRange()
82 int64_t bytes_to_skip = byte_range.first_byte_position(); in SkipToRequestedRange()
Dinput_stream_reader.h35 virtual int Seek(const net::HttpByteRange& byte_range);
47 int VerifyRequestedRange(net::HttpByteRange* byte_range,
52 int SkipToRequestedRange(const net::HttpByteRange& byte_range);
Dinput_stream_reader_unittest.cc47 net::HttpByteRange byte_range; in SeekRange() local
48 byte_range.set_first_byte_position(first_byte); in SeekRange()
49 byte_range.set_last_byte_position(last_byte); in SeekRange()
50 return input_stream_reader_.Seek(byte_range); in SeekRange()
Dandroid_stream_reader_url_request_job.cc71 int Seek(const net::HttpByteRange& byte_range) { in Seek() argument
72 return input_stream_reader_->Seek(byte_range); in Seek()
Dandroid_stream_reader_url_request_job_unittest.cc149 MOCK_METHOD1(Seek, int(const net::HttpByteRange& byte_range));
/external/chromium_org/tools/telemetry/telemetry/core/
Dmemory_cache_http_server.py37 if not resource_range.byte_range:
41 start_index = resource_range.byte_range.from_byte
42 end_index = resource_range.byte_range.to_byte
64 byte_range = self.GetByteRange(total_num_of_bytes)
65 if byte_range:
69 'bytes %d-%d/%d' % (byte_range.from_byte,
70 byte_range.to_byte,
72 total_num_of_bytes = byte_range.to_byte - byte_range.from_byte + 1
83 return ResourceAndRange(resource, byte_range)
/external/chromium_org/chrome/browser/chromeos/drive/fileapi/
Dwebkit_file_stream_reader_impl.cc53 net::HttpByteRange byte_range; in Read() local
54 byte_range.set_first_byte_position(offset_); in Read()
57 byte_range, in Read()
79 net::HttpByteRange byte_range; in GetLength() local
80 byte_range.set_first_byte_position(offset_); in GetLength()
83 byte_range, in GetLength()
/external/chromium_org/chrome/browser/chromeos/drive/
Ddrive_file_stream_reader_unittest.cc405 net::HttpByteRange byte_range; in TEST_F() local
406 byte_range.set_first_byte_position(kRangeOffset); in TEST_F()
408 byte_range.set_last_byte_position(kRangeOffset + kRangeLength - 1); in TEST_F()
413 byte_range, in TEST_F()
442 byte_range, in TEST_F()
474 net::HttpByteRange byte_range; in TEST_F() local
475 byte_range.set_first_byte_position(kRangeOffset); in TEST_F()
477 byte_range.set_last_byte_position(kRangeOffset + kRangeLength - 1); in TEST_F()
482 byte_range, in TEST_F()
Ddrive_file_stream_reader.cc349 const net::HttpByteRange& byte_range, in Initialize() argument
360 byte_range, in Initialize()
387 const net::HttpByteRange& byte_range, in InitializeAfterGetFileContentInitialized() argument
403 if (!ComputeConcretePosition(byte_range, entry->file_info().size(), in InitializeAfterGetFileContentInitialized()
Ddrive_file_stream_reader.h166 const net::HttpByteRange& byte_range,
187 const net::HttpByteRange& byte_range,
/external/chromium_org/net/http/
Dhttp_response_headers.cc373 const HttpByteRange& byte_range, in UpdateWithNewRange() argument
376 DCHECK(byte_range.IsValid()); in UpdateWithNewRange()
377 DCHECK(byte_range.HasFirstBytePosition()); in UpdateWithNewRange()
378 DCHECK(byte_range.HasLastBytePosition()); in UpdateWithNewRange()
386 int64 start = byte_range.first_byte_position(); in UpdateWithNewRange()
387 int64 end = byte_range.last_byte_position(); in UpdateWithNewRange()
Dhttp_response_headers.h93 void UpdateWithNewRange(const HttpByteRange& byte_range,
Dhttp_cache_unittest.cc357 net::HttpByteRange byte_range = ranges[0]; in RangeHandler() local
358 if (byte_range.first_byte_position() > 79) { in RangeHandler()
364 EXPECT_TRUE(byte_range.ComputeBounds(80)); in RangeHandler()
365 int start = static_cast<int>(byte_range.first_byte_position()); in RangeHandler()
366 int end = static_cast<int>(byte_range.last_byte_position()); in RangeHandler()