Searched refs:FileFetcher (Results 1 – 6 of 6) sorted by relevance
44 bool FileFetcher::SupportedUrl(const string& url) { in SupportedUrl()50 FileFetcher::~FileFetcher() { in ~FileFetcher()57 void FileFetcher::BeginTransfer(const string& url) { in BeginTransfer()94 void FileFetcher::TerminateTransfer() { in TerminateTransfer()102 void FileFetcher::ScheduleRead() { in ScheduleRead()121 base::Bind(&FileFetcher::OnReadDoneCallback, base::Unretained(this)), in ScheduleRead()122 base::Bind(&FileFetcher::OnReadErrorCallback, base::Unretained(this)), in ScheduleRead()133 void FileFetcher::OnReadDoneCallback(size_t bytes_read) { in OnReadDoneCallback()148 void FileFetcher::OnReadErrorCallback(const brillo::Error* error) { in OnReadErrorCallback()155 void FileFetcher::Pause() { in Pause()[all …]
30 EXPECT_TRUE(FileFetcher::SupportedUrl("file:///path/to/somewhere.bin")); in TEST_F()31 EXPECT_TRUE(FileFetcher::SupportedUrl("FILE:///I/LIKE/TO/SHOUT")); in TEST_F()33 EXPECT_FALSE(FileFetcher::SupportedUrl("file://relative")); in TEST_F()34 EXPECT_FALSE(FileFetcher::SupportedUrl("http:///no_http_here")); in TEST_F()
36 class FileFetcher : public HttpFetcher {41 FileFetcher() : HttpFetcher(nullptr) {} in FileFetcher() function44 ~FileFetcher() override;114 DISALLOW_COPY_AND_ASSIGN(FileFetcher);
321 return new FileFetcher(); in NewLargeFetcher()370 MultiRangeHttpFetcher* ret = new MultiRangeHttpFetcher(new FileFetcher()); in NewLargeFetcher()
261 if (FileFetcher::SupportedUrl(payload_url)) { in ApplyPayload()263 fetcher = new FileFetcher(); in ApplyPayload()
250 new FileFetcher(), in ApplyPayload()