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

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

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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/quota_backend_impl.h
diff --git a/webkit/browser/fileapi/quota/quota_backend_impl.h b/webkit/browser/fileapi/quota/quota_backend_impl.h
index 033a61a6fab9d6a033a0bdb2aeb69243c2b3dae2..b6a153eb7da87054587912dcca0952b8df92c55c 100644
--- a/webkit/browser/fileapi/quota/quota_backend_impl.h
+++ b/webkit/browser/fileapi/quota/quota_backend_impl.h
@@ -1,106 +1,5 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// Copyright 2014 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_QUOTA_QUOTA_BACKEND_IMPL_H_
-#define WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "webkit/browser/fileapi/quota/quota_reservation_manager.h"
-#include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h"
-#include "webkit/browser/storage_browser_export.h"
-#include "webkit/common/quota/quota_status_code.h"
-
-namespace base {
-class SequencedTaskRunner;
-}
-
-namespace content {
-class QuotaBackendImplTest;
-}
-
-namespace storage {
-class QuotaManagerProxy;
-}
-
-namespace storage {
-
-class FileSystemUsageCache;
-class ObfuscatedFileUtil;
-
-// An instance of this class is owned by QuotaReservationManager.
-class STORAGE_EXPORT QuotaBackendImpl
- : public QuotaReservationManager::QuotaBackend {
- public:
- typedef QuotaReservationManager::ReserveQuotaCallback
- ReserveQuotaCallback;
-
- QuotaBackendImpl(base::SequencedTaskRunner* file_task_runner,
- ObfuscatedFileUtil* obfuscated_file_util,
- FileSystemUsageCache* file_system_usage_cache,
- storage::QuotaManagerProxy* quota_manager_proxy);
- virtual ~QuotaBackendImpl();
-
- // QuotaReservationManager::QuotaBackend overrides.
- virtual void ReserveQuota(
- const GURL& origin,
- FileSystemType type,
- int64 delta,
- const ReserveQuotaCallback& callback) OVERRIDE;
- virtual void ReleaseReservedQuota(
- const GURL& origin,
- FileSystemType type,
- int64 size) OVERRIDE;
- virtual void CommitQuotaUsage(
- const GURL& origin,
- FileSystemType type,
- int64 delta) OVERRIDE;
- virtual void IncrementDirtyCount(
- const GURL& origin,
- FileSystemType type) OVERRIDE;
- virtual void DecrementDirtyCount(
- const GURL& origin,
- FileSystemType type) OVERRIDE;
-
- private:
- friend class content::QuotaBackendImplTest;
-
- struct QuotaReservationInfo {
- QuotaReservationInfo(const GURL& origin, FileSystemType type, int64 delta);
- ~QuotaReservationInfo();
-
- GURL origin;
- FileSystemType type;
- int64 delta;
- };
-
- void DidGetUsageAndQuotaForReserveQuota(const QuotaReservationInfo& info,
- const ReserveQuotaCallback& callback,
- storage::QuotaStatusCode status,
- int64 usage,
- int64 quota);
-
- void ReserveQuotaInternal(
- const QuotaReservationInfo& info);
- base::File::Error GetUsageCachePath(
- const GURL& origin,
- FileSystemType type,
- base::FilePath* usage_file_path);
-
- scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
-
- // Owned by SandboxFileSystemBackendDelegate.
- ObfuscatedFileUtil* obfuscated_file_util_;
- FileSystemUsageCache* file_system_usage_cache_;
-
- scoped_refptr<storage::QuotaManagerProxy> quota_manager_proxy_;
-
- base::WeakPtrFactory<QuotaBackendImpl> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(QuotaBackendImpl);
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_QUOTA_QUOTA_BACKEND_IMPL_H_
+#include "storage/browser/fileapi/quota/quota_backend_impl.h"
« no previous file with comments | « webkit/browser/fileapi/quota/open_file_handle_context.cc ('k') | webkit/browser/fileapi/quota/quota_backend_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698