Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Unified Diff: webkit/browser/fileapi/quota/open_file_handle.cc

Issue 140833003: [Pepper][FileAPI] Interface clean up (3/6) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/browser/fileapi/quota/open_file_handle.cc
diff --git a/webkit/browser/fileapi/quota/open_file_handle.cc b/webkit/browser/fileapi/quota/open_file_handle.cc
index f0f69c665877d40052dc0a4bdbc36bf9c6cfcc4d..8ebb94656214410c4146eed59a3fa05f44a31f28 100644
--- a/webkit/browser/fileapi/quota/open_file_handle.cc
+++ b/webkit/browser/fileapi/quota/open_file_handle.cc
@@ -13,21 +13,17 @@ OpenFileHandle::~OpenFileHandle() {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
}
-int64 OpenFileHandle::UpdateMaxWrittenOffset(int64 offset) {
+void OpenFileHandle::UpdateMaxWrittenOffset(int64 offset) {
DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- int64 new_file_size = 0;
- int64 growth = 0;
- context_->UpdateMaxWrittenOffset(offset, &new_file_size, &growth);
-
+ int64 growth = context_->UpdateMaxWrittenOffset(offset);
if (growth > 0)
reservation_->ConsumeReservation(growth);
-
- return new_file_size;
}
-int64 OpenFileHandle::base_file_size() const {
- return context_->base_file_size();
+int64 OpenFileHandle::GetEstimatedFileSize() const {
+ DCHECK(sequence_checker_.CalledOnValidSequencedThread());
+ return context_->GetEstimatedFileSize();
}
OpenFileHandle::OpenFileHandle(QuotaReservation* reservation,
« no previous file with comments | « webkit/browser/fileapi/quota/open_file_handle.h ('k') | webkit/browser/fileapi/quota/open_file_handle_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698