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

Unified Diff: webkit/browser/fileapi/sandbox_quota_observer.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/sandbox_quota_observer.h
diff --git a/webkit/browser/fileapi/sandbox_quota_observer.h b/webkit/browser/fileapi/sandbox_quota_observer.h
deleted file mode 100644
index 2c16860149c943aaf3ac46b2f414fefb2fe7adff..0000000000000000000000000000000000000000
--- a/webkit/browser/fileapi/sandbox_quota_observer.h
+++ /dev/null
@@ -1,82 +0,0 @@
-// Copyright (c) 2012 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_SANDBOX_QUOTA_OBSERVER_H_
-#define WEBKIT_BROWSER_FILEAPI_SANDBOX_QUOTA_OBSERVER_H_
-
-#include <map>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/files/file_path.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/memory/weak_ptr.h"
-#include "webkit/browser/fileapi/file_observers.h"
-#include "webkit/browser/fileapi/file_system_url.h"
-
-namespace base {
-class SequencedTaskRunner;
-}
-
-namespace quota {
-class QuotaManagerProxy;
-}
-
-namespace fileapi {
-
-class FileSystemUsageCache;
-class FileSystemURL;
-class TimedTaskHelper;
-class ObfuscatedFileUtil;
-
-class SandboxQuotaObserver
- : public FileUpdateObserver,
- public FileAccessObserver {
- public:
- typedef std::map<base::FilePath, int64> PendingUpdateNotificationMap;
-
- SandboxQuotaObserver(
- quota::QuotaManagerProxy* quota_manager_proxy,
- base::SequencedTaskRunner* update_notify_runner,
- ObfuscatedFileUtil* sandbox_file_util,
- FileSystemUsageCache* file_system_usage_cache_);
- virtual ~SandboxQuotaObserver();
-
- // FileUpdateObserver overrides.
- virtual void OnStartUpdate(const FileSystemURL& url) OVERRIDE;
- virtual void OnUpdate(const FileSystemURL& url, int64 delta) OVERRIDE;
- virtual void OnEndUpdate(const FileSystemURL& url) OVERRIDE;
-
- // FileAccessObserver overrides.
- virtual void OnAccess(const FileSystemURL& url) OVERRIDE;
-
- void SetUsageCacheEnabled(const GURL& origin,
- FileSystemType type,
- bool enabled);
-
- private:
- void ApplyPendingUsageUpdate();
- void UpdateUsageCacheFile(const base::FilePath& usage_file_path, int64 delta);
-
- base::FilePath GetUsageCachePath(const FileSystemURL& url);
-
- scoped_refptr<quota::QuotaManagerProxy> quota_manager_proxy_;
- scoped_refptr<base::SequencedTaskRunner> update_notify_runner_;
-
- // Not owned; sandbox_file_util_ should have identical lifetime with this.
- ObfuscatedFileUtil* sandbox_file_util_;
-
- // Not owned; file_system_usage_cache_ should have longer lifetime than this.
- FileSystemUsageCache* file_system_usage_cache_;
-
- PendingUpdateNotificationMap pending_update_notification_;
- scoped_ptr<TimedTaskHelper> delayed_cache_update_helper_;
-
- DISALLOW_COPY_AND_ASSIGN(SandboxQuotaObserver);
-};
-
-} // namespace fileapi
-
-#endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_QUOTA_OBSERVER_H_
« no previous file with comments | « webkit/browser/fileapi/sandbox_prioritized_origin_database.cc ('k') | webkit/browser/fileapi/sandbox_quota_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698