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

Unified Diff: content/browser/devtools/protocol/usage_and_quota_query.h

Issue 977553003: DevTools: remove usage and quota getter from the protocol handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@946713002
Patch Set: removed the test. Created 5 years, 10 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: content/browser/devtools/protocol/usage_and_quota_query.h
diff --git a/content/browser/devtools/protocol/usage_and_quota_query.h b/content/browser/devtools/protocol/usage_and_quota_query.h
deleted file mode 100644
index 972afc1966f43cb818e593d4f770a8197ddf7d51..0000000000000000000000000000000000000000
--- a/content/browser/devtools/protocol/usage_and_quota_query.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// 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 CONTENT_BROWSER_DEVTOOLS_PROTOCOL_USAGE_AND_QUOTA_QUERY_H_
-#define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_USAGE_AND_QUOTA_QUERY_H_
-
-#include "content/browser/devtools/protocol/devtools_protocol_handler.h"
-#include "storage/browser/quota/quota_manager.h"
-
-namespace content {
-namespace devtools {
-namespace page {
-
-// This class can only be used on IO thread.
-class UsageAndQuotaQuery : public base::RefCounted<UsageAndQuotaQuery> {
- public:
- using Callback =
- base::Callback<void(scoped_refptr<QueryUsageAndQuotaResponse>)>;
-
- UsageAndQuotaQuery(scoped_refptr<storage::QuotaManager> quota_manager,
- const GURL& security_origin,
- const Callback& callback);
-
- private:
- friend class base::RefCounted<UsageAndQuotaQuery>;
-
- using UsageItems = std::vector<scoped_refptr<UsageItem>>;
-
- virtual ~UsageAndQuotaQuery();
-
- void DidGetTemporaryQuota(storage::QuotaStatusCode status,
- int64 used_bytes,
- int64 quota_in_bytes);
-
- void DidGetPersistentQuota(storage::QuotaStatusCode status, int64 value);
-
- void GetHostUsage(UsageItems* list, storage::StorageType storage_type);
-
- void GetUsageForClient(UsageItems* list,
- storage::StorageType storage_type,
- storage::QuotaClient::ID client_id,
- const std::string& client_name);
-
- void DidGetUsageForClient(UsageItems* list,
- const std::string& client_name,
- int64 value);
-
- scoped_refptr<storage::QuotaManager> quota_manager_;
- GURL security_origin_;
- Callback callback_;
- double temporary_quota_;
- double persistent_quota_;
- UsageItems temporary_usage_;
- UsageItems persistent_usage_;
- UsageItems syncable_usage_;
-};
-
-} // namespace page
-} // namespace devtools
-} // namespace content
-
-#endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_USAGE_AND_QUOTA_QUERY_H_
« no previous file with comments | « content/browser/devtools/protocol/page_handler.cc ('k') | content/browser/devtools/protocol/usage_and_quota_query.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698