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

Unified Diff: webkit/browser/fileapi/quota/open_file_handle_context.h

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_context.h
diff --git a/webkit/browser/fileapi/quota/open_file_handle_context.h b/webkit/browser/fileapi/quota/open_file_handle_context.h
deleted file mode 100644
index 5b0cbcb9ca95e648ef1052eaa3f4c1afc7076b36..0000000000000000000000000000000000000000
--- a/webkit/browser/fileapi/quota/open_file_handle_context.h
+++ /dev/null
@@ -1,61 +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.
-
-#ifndef WEBKIT_BROWSER_FILEAPI_OPEN_FILE_HANDLE_CONTEXT_H_
-#define WEBKIT_BROWSER_FILEAPI_OPEN_FILE_HANDLE_CONTEXT_H_
-
-#include <map>
-
-#include "base/basictypes.h"
-#include "base/files/file_path.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "url/gurl.h"
-#include "webkit/browser/webkit_storage_browser_export.h"
-#include "webkit/common/fileapi/file_system_types.h"
-
-namespace fileapi {
-
-class QuotaReservationBuffer;
-
-// This class represents a underlying file of a managed FileSystem file.
-// The instance keeps alive while at least one consumer keeps an open file
-// handle.
-// This class is usually manipulated only via OpenFileHandle.
-class OpenFileHandleContext : public base::RefCounted<OpenFileHandleContext> {
- public:
- OpenFileHandleContext(const base::FilePath& platform_path,
- QuotaReservationBuffer* reservation_buffer);
-
- // Updates the max written offset and returns the amount of growth.
- int64 UpdateMaxWrittenOffset(int64 offset);
-
- void AddAppendModeWriteAmount(int64 amount);
-
- const base::FilePath& platform_path() const {
- return platform_path_;
- }
-
- int64 GetEstimatedFileSize() const;
- int64 GetMaxWrittenOffset() const;
-
- private:
- friend class base::RefCounted<OpenFileHandleContext>;
- virtual ~OpenFileHandleContext();
-
- int64 initial_file_size_;
- int64 maximum_written_offset_;
- int64 append_mode_write_amount_;
- base::FilePath platform_path_;
-
- scoped_refptr<QuotaReservationBuffer> reservation_buffer_;
-
- base::SequenceChecker sequence_checker_;
-
- DISALLOW_COPY_AND_ASSIGN(OpenFileHandleContext);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_BROWSER_FILEAPI_OPEN_FILE_HANDLE_CONTEXT_H_
« no previous file with comments | « webkit/browser/fileapi/quota/open_file_handle.cc ('k') | webkit/browser/fileapi/quota/open_file_handle_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698