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

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

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
deleted file mode 100644
index 27f50b1351f4c6125064dd5a2759b7a2a42960b4..0000000000000000000000000000000000000000
--- a/webkit/browser/fileapi/quota/open_file_handle.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "webkit/browser/fileapi/quota/open_file_handle.h"
-
-#include "webkit/browser/fileapi/quota/open_file_handle_context.h"
-#include "webkit/browser/fileapi/quota/quota_reservation.h"
-
-namespace fileapi {
-
-OpenFileHandle::~OpenFileHandle() {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
-}
-
-void OpenFileHandle::UpdateMaxWrittenOffset(int64 offset) {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
-
- int64 growth = context_->UpdateMaxWrittenOffset(offset);
- if (growth > 0)
- reservation_->ConsumeReservation(growth);
-}
-
-void OpenFileHandle::AddAppendModeWriteAmount(int64 amount) {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- if (amount <= 0)
- return;
-
- context_->AddAppendModeWriteAmount(amount);
- reservation_->ConsumeReservation(amount);
-}
-
-int64 OpenFileHandle::GetEstimatedFileSize() const {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- return context_->GetEstimatedFileSize();
-}
-
-int64 OpenFileHandle::GetMaxWrittenOffset() const {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- return context_->GetMaxWrittenOffset();
-}
-
-const base::FilePath& OpenFileHandle::platform_path() const {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
- return context_->platform_path();
-}
-
-OpenFileHandle::OpenFileHandle(QuotaReservation* reservation,
- OpenFileHandleContext* context)
- : reservation_(reservation),
- context_(context) {
- DCHECK(sequence_checker_.CalledOnValidSequencedThread());
-}
-
-} // namespace fileapi
« 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