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

Unified Diff: storage/browser/fileapi/quota/open_file_handle_context.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: storage/browser/fileapi/quota/open_file_handle_context.cc
diff --git a/webkit/browser/fileapi/quota/open_file_handle_context.cc b/storage/browser/fileapi/quota/open_file_handle_context.cc
similarity index 87%
rename from webkit/browser/fileapi/quota/open_file_handle_context.cc
rename to storage/browser/fileapi/quota/open_file_handle_context.cc
index 57e284fd9614b2bb1195b766264abe8d8ce7a400..c91fa3ab63dd97b5e3cfebc0a1302b4389edd35f 100644
--- a/webkit/browser/fileapi/quota/open_file_handle_context.cc
+++ b/storage/browser/fileapi/quota/open_file_handle_context.cc
@@ -2,12 +2,12 @@
// 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_context.h"
+#include "storage/browser/fileapi/quota/open_file_handle_context.h"
#include "base/file_util.h"
-#include "webkit/browser/fileapi/quota/quota_reservation_buffer.h"
+#include "storage/browser/fileapi/quota/quota_reservation_buffer.h"
-namespace fileapi {
+namespace storage {
OpenFileHandleContext::OpenFileHandleContext(
const base::FilePath& platform_path,
@@ -64,9 +64,9 @@ OpenFileHandleContext::~OpenFileHandleContext() {
int64 reserved_quota_consumption =
std::max(GetEstimatedFileSize(), file_size) - initial_file_size_;
- reservation_buffer_->CommitFileGrowth(
- reserved_quota_consumption, usage_delta);
+ reservation_buffer_->CommitFileGrowth(reserved_quota_consumption,
+ usage_delta);
reservation_buffer_->DetachOpenFileHandleContext(this);
}
-} // namespace fileapi
+} // namespace storage
« no previous file with comments | « storage/browser/fileapi/quota/open_file_handle_context.h ('k') | storage/browser/fileapi/quota/quota_backend_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698