Searched refs:FileFetcher (Results 1 – 6 of 6) sorted by relevance
44 bool FileFetcher::SupportedUrl(const string& url) { in SupportedUrl()51 FileFetcher::~FileFetcher() { in ~FileFetcher()58 void FileFetcher::BeginTransfer(const string& url) { in BeginTransfer()103 void FileFetcher::TerminateTransfer() { in TerminateTransfer()111 void FileFetcher::ScheduleRead() { in ScheduleRead()130 base::Bind(&FileFetcher::OnReadDoneCallback, base::Unretained(this)), in ScheduleRead()131 base::Bind(&FileFetcher::OnReadErrorCallback, base::Unretained(this)), in ScheduleRead()142 void FileFetcher::OnReadDoneCallback(size_t bytes_read) { in OnReadDoneCallback()157 void FileFetcher::OnReadErrorCallback(const brillo::Error* error) { in OnReadErrorCallback()164 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;120 DISALLOW_COPY_AND_ASSIGN(FileFetcher);
331 return new FileFetcher(); in NewLargeFetcher()380 MultiRangeHttpFetcher* ret = new MultiRangeHttpFetcher(new FileFetcher()); in NewLargeFetcher()
286 if (FileFetcher::SupportedUrl(payload_url)) { in ApplyPayload()288 fetcher = new FileFetcher(); in ApplyPayload()
227 new FileFetcher(), in ApplyPayload()