• Home
  • Raw
  • Download

Lines Matching refs:file_id

101   vector<string> GetP2PClientArgs(const string &file_id,  in GetP2PClientArgs()  argument
105 args.push_back(string("--get-url=") + file_id); in GetP2PClientArgs()
130 void LookupUrlForFile(const string& file_id,
134 bool FileShare(const string& file_id,
136 FilePath FileGetPath(const string& file_id) override;
137 ssize_t FileGetSize(const string& file_id) override;
138 ssize_t FileGetExpectedSize(const string& file_id) override;
139 bool FileGetVisible(const string& file_id,
141 bool FileMakeVisible(const string& file_id) override;
157 FilePath GetPath(const string& file_id, Visibility visibility);
314 FilePath P2PManagerImpl::GetPath(const string& file_id, Visibility visibility) { in GetPath() argument
315 return configuration_->GetP2PDir().Append(file_id + GetExt(visibility)); in GetPath()
490 void P2PManagerImpl::LookupUrlForFile(const string& file_id, in LookupUrlForFile() argument
495 string file_id_with_ext = file_id + "." + file_extension_; in LookupUrlForFile()
501 bool P2PManagerImpl::FileShare(const string& file_id, in FileShare() argument
504 FilePath path = FileGetPath(file_id); in FileShare()
507 ssize_t file_expected_size = FileGetExpectedSize(file_id); in FileShare()
540 path = GetPath(file_id, kNonVisible); in FileShare()
583 FilePath P2PManagerImpl::FileGetPath(const string& file_id) { in FileGetPath() argument
587 path = GetPath(file_id, kVisible); in FileGetPath()
592 path = GetPath(file_id, kNonVisible); in FileGetPath()
601 bool P2PManagerImpl::FileGetVisible(const string& file_id, in FileGetVisible() argument
603 FilePath path = FileGetPath(file_id); in FileGetVisible()
605 LOG(ERROR) << "No file for id " << file_id; in FileGetVisible()
613 bool P2PManagerImpl::FileMakeVisible(const string& file_id) { in FileMakeVisible() argument
614 FilePath path = FileGetPath(file_id); in FileMakeVisible()
616 LOG(ERROR) << "No file for id " << file_id; in FileMakeVisible()
636 ssize_t P2PManagerImpl::FileGetSize(const string& file_id) { in FileGetSize() argument
637 FilePath path = FileGetPath(file_id); in FileGetSize()
644 ssize_t P2PManagerImpl::FileGetExpectedSize(const string& file_id) { in FileGetExpectedSize() argument
645 FilePath path = FileGetPath(file_id); in FileGetExpectedSize()