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

Unified Diff: webkit/browser/quota/quota_manager_proxy.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
« no previous file with comments | « webkit/browser/quota/quota_manager.cc ('k') | webkit/browser/quota/quota_manager_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/quota/quota_manager_proxy.h
diff --git a/webkit/browser/quota/quota_manager_proxy.h b/webkit/browser/quota/quota_manager_proxy.h
index 447664ca04b8715d55c5f82347314bfc5670d316..49e7b21d5bafe75091a0dc3b30c4ab115d830ed0 100644
--- a/webkit/browser/quota/quota_manager_proxy.h
+++ b/webkit/browser/quota/quota_manager_proxy.h
@@ -2,78 +2,4 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
-#define WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
-
-#include "base/basictypes.h"
-#include "base/callback.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 "base/sequenced_task_runner_helpers.h"
-#include "webkit/browser/quota/quota_callbacks.h"
-#include "webkit/browser/quota/quota_client.h"
-#include "webkit/browser/quota/quota_database.h"
-#include "webkit/browser/quota/quota_manager.h"
-#include "webkit/browser/quota/quota_task.h"
-#include "webkit/browser/quota/special_storage_policy.h"
-#include "webkit/browser/storage_browser_export.h"
-
-namespace base {
-class SequencedTaskRunner;
-class SingleThreadTaskRunner;
-}
-
-namespace storage {
-
-// The proxy may be called and finally released on any thread.
-class STORAGE_EXPORT QuotaManagerProxy
- : public base::RefCountedThreadSafe<QuotaManagerProxy> {
- public:
- typedef QuotaManager::GetUsageAndQuotaCallback
- GetUsageAndQuotaCallback;
-
- virtual void RegisterClient(QuotaClient* client);
- virtual void NotifyStorageAccessed(QuotaClient::ID client_id,
- const GURL& origin,
- StorageType type);
- virtual void NotifyStorageModified(QuotaClient::ID client_id,
- const GURL& origin,
- StorageType type,
- int64 delta);
- virtual void NotifyOriginInUse(const GURL& origin);
- virtual void NotifyOriginNoLongerInUse(const GURL& origin);
-
- virtual void SetUsageCacheEnabled(QuotaClient::ID client_id,
- const GURL& origin,
- StorageType type,
- bool enabled);
- virtual void GetUsageAndQuota(
- base::SequencedTaskRunner* original_task_runner,
- const GURL& origin,
- StorageType type,
- const GetUsageAndQuotaCallback& callback);
-
- // This method may only be called on the IO thread.
- // It may return NULL if the manager has already been deleted.
- QuotaManager* quota_manager() const;
-
- protected:
- friend class QuotaManager;
- friend class base::RefCountedThreadSafe<QuotaManagerProxy>;
-
- QuotaManagerProxy(
- QuotaManager* manager,
- const scoped_refptr<base::SingleThreadTaskRunner>& io_thread);
- virtual ~QuotaManagerProxy();
-
- QuotaManager* manager_; // only accessed on the io thread
- scoped_refptr<base::SingleThreadTaskRunner> io_thread_;
-
- DISALLOW_COPY_AND_ASSIGN(QuotaManagerProxy);
-};
-
-} // namespace storage
-
-#endif // WEBKIT_BROWSER_QUOTA_QUOTA_MANAGER_PROXY_H_
+#include "storage/browser/quota/quota_manager_proxy.h"
« no previous file with comments | « webkit/browser/quota/quota_manager.cc ('k') | webkit/browser/quota/quota_manager_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698