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

Unified Diff: webkit/browser/fileapi/sandbox_quota_observer.h

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/sandbox_quota_observer.h
diff --git a/webkit/browser/fileapi/sandbox_quota_observer.h b/webkit/browser/fileapi/sandbox_quota_observer.h
index 7a9075772f939b3b425bc80b61ac2ed4ad86c9bc..1df1a652677a8bcce1002fbe29d164d9b96dc926 100644
--- a/webkit/browser/fileapi/sandbox_quota_observer.h
+++ b/webkit/browser/fileapi/sandbox_quota_observer.h
@@ -1,81 +1,5 @@
-// Copyright (c) 2012 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_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 storage {
-class QuotaManagerProxy;
-}
-
-namespace storage {
-
-class FileSystemUsageCache;
-class FileSystemURL;
-class TimedTaskHelper;
-class ObfuscatedFileUtil;
-
-class SandboxQuotaObserver
- : public FileUpdateObserver,
- public FileAccessObserver {
- public:
- typedef std::map<base::FilePath, int64> PendingUpdateNotificationMap;
-
- SandboxQuotaObserver(storage::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<storage::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 storage
-
-#endif // WEBKIT_BROWSER_FILEAPI_SANDBOX_QUOTA_OBSERVER_H_
+#include "storage/browser/fileapi/sandbox_quota_observer.h"

Powered by Google App Engine
This is Rietveld 408576698