base_file_ 51 content/browser/download/base_file_unittest.cc base_file_.reset(new BaseFile(base::FilePath(), base_file_ 62 content/browser/download/base_file_unittest.cc EXPECT_FALSE(base_file_->in_progress()); base_file_ 65 content/browser/download/base_file_unittest.cc base_file_->bytes_so_far()); base_file_ 68 content/browser/download/base_file_unittest.cc base::FilePath full_path = base_file_->full_path(); base_file_ 79 content/browser/download/base_file_unittest.cc base_file_.reset(); base_file_ 102 content/browser/download/base_file_unittest.cc base_file_.reset(new BaseFile(base::FilePath(), base_file_ 113 content/browser/download/base_file_unittest.cc DownloadInterruptReason result = base_file_->Initialize(temp_dir_.path()); base_file_ 119 content/browser/download/base_file_unittest.cc EXPECT_EQ(expect_in_progress_, base_file_->in_progress()); base_file_ 121 content/browser/download/base_file_unittest.cc base_file_->AppendDataToFile(data.data(), data.size()); base_file_ 126 content/browser/download/base_file_unittest.cc if (base_file_->in_progress()) { base_file_ 130 content/browser/download/base_file_unittest.cc base_file_->bytes_so_far()); base_file_ 185 content/browser/download/base_file_unittest.cc EXPECT_TRUE(base_file_.get()); base_file_ 186 content/browser/download/base_file_unittest.cc return base_file_->CurrentSpeedAtTime(current_time); base_file_ 190 content/browser/download/base_file_unittest.cc EXPECT_TRUE(base_file_.get()); base_file_ 191 content/browser/download/base_file_unittest.cc return base_file_->start_tick_; base_file_ 200 content/browser/download/base_file_unittest.cc scoped_ptr<BaseFile> base_file_; base_file_ 233 content/browser/download/base_file_unittest.cc EXPECT_EQ(base::FilePath().value(), base_file_->full_path().value()); base_file_ 239 content/browser/download/base_file_unittest.cc EXPECT_TRUE(base::PathExists(base_file_->full_path())); base_file_ 240 content/browser/download/base_file_unittest.cc base_file_->Cancel(); base_file_ 241 content/browser/download/base_file_unittest.cc EXPECT_FALSE(base::PathExists(base_file_->full_path())); base_file_ 242 content/browser/download/base_file_unittest.cc EXPECT_NE(base::FilePath().value(), base_file_->full_path().value()); base_file_ 250 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 251 content/browser/download/base_file_unittest.cc base_file_->Detach(); base_file_ 267 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 270 content/browser/download/base_file_unittest.cc base_file_->GetHash(&hash); base_file_ 275 content/browser/download/base_file_unittest.cc base_file_->Detach(); base_file_ 283 content/browser/download/base_file_unittest.cc base::FilePath initial_path(base_file_->full_path()); base_file_ 290 content/browser/download/base_file_unittest.cc EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path)); base_file_ 294 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 295 content/browser/download/base_file_unittest.cc base_file_->Detach(); base_file_ 303 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 313 content/browser/download/base_file_unittest.cc EXPECT_FALSE(base_file_->GetHash(&hash)); base_file_ 314 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 329 content/browser/download/base_file_unittest.cc EXPECT_STRNE(std::string().c_str(), base_file_->GetHashState().c_str()); base_file_ 331 content/browser/download/base_file_unittest.cc EXPECT_STRNE(std::string().c_str(), base_file_->GetHashState().c_str()); base_file_ 332 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 335 content/browser/download/base_file_unittest.cc base_file_->GetHash(&hash); base_file_ 357 content/browser/download/base_file_unittest.cc EXPECT_FALSE(base_file_->GetHash(&hash)); base_file_ 358 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 360 content/browser/download/base_file_unittest.cc EXPECT_TRUE(base_file_->GetHash(&hash)); base_file_ 385 content/browser/download/base_file_unittest.cc hash_state = base_file_->GetHashState(); base_file_ 387 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 392 content/browser/download/base_file_unittest.cc ASSERT_TRUE(base::CopyFile(base_file_->full_path(), new_file_path)); base_file_ 398 content/browser/download/base_file_unittest.cc base_file_->bytes_so_far(), base_file_ 421 content/browser/download/base_file_unittest.cc base::FilePath initial_path(base_file_->full_path()); base_file_ 429 content/browser/download/base_file_unittest.cc base_file_->Rename(new_path)); base_file_ 433 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 440 content/browser/download/base_file_unittest.cc base::FilePath initial_path(base_file_->full_path()); base_file_ 447 content/browser/download/base_file_unittest.cc EXPECT_TRUE(base_file_->in_progress()); base_file_ 448 content/browser/download/base_file_unittest.cc EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path)); base_file_ 454 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 473 content/browser/download/base_file_unittest.cc base_file_->Rename(new_path)); base_file_ 476 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 487 content/browser/download/base_file_unittest.cc base_file_.reset(new BaseFile(path, base_file_ 502 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 519 content/browser/download/base_file_unittest.cc CreateFileWithName(base_file_->full_path()); base_file_ 522 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 533 content/browser/download/base_file_unittest.cc base_file_.reset(new BaseFile(existing_file_name, base_file_ 544 content/browser/download/base_file_unittest.cc const base::FilePath file_name = base_file_->full_path(); base_file_ 550 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 551 content/browser/download/base_file_unittest.cc base_file_->Detach(); base_file_ 567 content/browser/download/base_file_unittest.cc base_file_.reset(new BaseFile(readonly_file_name, base_file_ 580 content/browser/download/base_file_unittest.cc const base::FilePath file_name = base_file_->full_path(); base_file_ 587 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 588 content/browser/download/base_file_unittest.cc base_file_->Detach(); base_file_ 606 content/browser/download/base_file_unittest.cc ASSERT_TRUE(base_file_->full_path().empty()); base_file_ 608 content/browser/download/base_file_unittest.cc EXPECT_FALSE(base_file_->full_path().empty()); base_file_ 618 content/browser/download/base_file_unittest.cc base_file_->full_path().DirName().value().c_str()); base_file_ 619 content/browser/download/base_file_unittest.cc base_file_->Finish(); base_file_ 92 net/disk_cache/blockfile/file.h base::File base_file_; // Regular, asynchronous IO handle. base_file_ 176 net/disk_cache/blockfile/file_ios.cc if (base_file_.IsValid()) base_file_ 181 net/disk_cache/blockfile/file_ios.cc base_file_.Initialize(name, flags); base_file_ 182 net/disk_cache/blockfile/file_ios.cc return base_file_.IsValid(); base_file_ 186 net/disk_cache/blockfile/file_ios.cc return base_file_.IsValid(); base_file_ 190 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 196 net/disk_cache/blockfile/file_ios.cc int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len); base_file_ 201 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 207 net/disk_cache/blockfile/file_ios.cc int ret = base_file_.Write(offset, static_cast<const char*>(buffer), base_file_ 217 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 235 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 246 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 250 net/disk_cache/blockfile/file_ios.cc return base_file_.SetLength(length); base_file_ 254 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 255 net/disk_cache/blockfile/file_ios.cc int64 len = base_file_.GetLength(); base_file_ 281 net/disk_cache/blockfile/file_ios.cc return base_file_.GetPlatformFile(); base_file_ 286 net/disk_cache/blockfile/file_ios.cc DCHECK(base_file_.IsValid()); base_file_ 44 net/disk_cache/blockfile/file_posix.cc if (base_file_.IsValid()) base_file_ 49 net/disk_cache/blockfile/file_posix.cc base_file_.Initialize(name, flags); base_file_ 50 net/disk_cache/blockfile/file_posix.cc return base_file_.IsValid(); base_file_ 54 net/disk_cache/blockfile/file_posix.cc return base_file_.IsValid(); base_file_ 58 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 64 net/disk_cache/blockfile/file_posix.cc int ret = base_file_.Read(offset, static_cast<char*>(buffer), buffer_len); base_file_ 69 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 75 net/disk_cache/blockfile/file_posix.cc int ret = base_file_.Write(offset, static_cast<const char*>(buffer), base_file_ 82 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 105 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 127 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 131 net/disk_cache/blockfile/file_posix.cc return base_file_.SetLength(length); base_file_ 135 net/disk_cache/blockfile/file_posix.cc DCHECK(base_file_.IsValid()); base_file_ 136 net/disk_cache/blockfile/file_posix.cc int64 len = base_file_.GetLength(); base_file_ 162 net/disk_cache/blockfile/file_posix.cc return base_file_.GetPlatformFile(); base_file_ 85 net/disk_cache/blockfile/file_win.cc base_file_ = base_file_ 89 net/disk_cache/blockfile/file_win.cc if (!base_file_.IsValid()) base_file_ 93 net/disk_cache/blockfile/file_win.cc base_file_.GetPlatformFile(), g_completion_handler.Pointer()); base_file_ 109 net/disk_cache/blockfile/file_win.cc return base_file_.IsValid() || sync_base_file_.IsValid(); base_file_ 151 net/disk_cache/blockfile/file_win.cc if (!ReadFile(base_file_.GetPlatformFile(), buffer, size, &actual, base_file_ 185 net/disk_cache/blockfile/file_win.cc return base_file_.IsValid() ? base_file_.GetPlatformFile() : base_file_ 201 net/disk_cache/blockfile/file_win.cc if (!WriteFile(base_file_.GetPlatformFile(), buffer, size, &actual,