| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 virtual ~QuotaInternalsProxy(); | 49 virtual ~QuotaInternalsProxy(); |
| 50 | 50 |
| 51 void ReportAvailableSpace(int64 available_space); | 51 void ReportAvailableSpace(int64 available_space); |
| 52 void ReportGlobalInfo(const GlobalStorageInfo& data); | 52 void ReportGlobalInfo(const GlobalStorageInfo& data); |
| 53 void ReportPerHostInfo(const std::vector<PerHostStorageInfo>& hosts); | 53 void ReportPerHostInfo(const std::vector<PerHostStorageInfo>& hosts); |
| 54 void ReportPerOriginInfo(const std::vector<PerOriginStorageInfo>& origins); | 54 void ReportPerOriginInfo(const std::vector<PerOriginStorageInfo>& origins); |
| 55 void ReportStatistics(const Statistics& stats); | 55 void ReportStatistics(const Statistics& stats); |
| 56 | 56 |
| 57 // Called on IO Thread by QuotaManager as callback. | 57 // Called on IO Thread by QuotaManager as callback. |
| 58 void DidGetAvailableSpace(quota::QuotaStatusCode status, int64 space); | 58 void DidGetAvailableSpace(quota::QuotaStatusCode status, int64 space); |
| 59 void DidGetGlobalQuota(quota::QuotaStatusCode status, | 59 void DidGetGlobalQuota(quota::StorageType type, |
| 60 quota::StorageType type, | 60 quota::QuotaStatusCode status, |
| 61 int64 quota); | 61 int64 quota); |
| 62 void DidGetGlobalUsage(quota::StorageType type, | 62 void DidGetGlobalUsage(quota::StorageType type, |
| 63 int64 usage, | 63 int64 usage, |
| 64 int64 unlimited_usage); | 64 int64 unlimited_usage); |
| 65 void DidDumpQuotaTable(const QuotaTableEntries& entries); | 65 void DidDumpQuotaTable(const QuotaTableEntries& entries); |
| 66 void DidDumpOriginInfoTable(const OriginInfoTableEntries& entries); | 66 void DidDumpOriginInfoTable(const OriginInfoTableEntries& entries); |
| 67 void DidGetHostUsage(const std::string& host, | 67 void DidGetHostUsage(const std::string& host, |
| 68 quota::StorageType type, | 68 quota::StorageType type, |
| 69 int64 usage); | 69 int64 usage); |
| 70 | 70 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 81 scoped_refptr<quota::QuotaManager> quota_manager_; | 81 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 82 std::set<std::pair<std::string, quota::StorageType> > | 82 std::set<std::pair<std::string, quota::StorageType> > |
| 83 hosts_visited_, hosts_pending_; | 83 hosts_visited_, hosts_pending_; |
| 84 std::vector<PerHostStorageInfo> report_pending_; | 84 std::vector<PerHostStorageInfo> report_pending_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy); | 86 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsProxy); |
| 87 }; | 87 }; |
| 88 } // quota_internals | 88 } // quota_internals |
| 89 | 89 |
| 90 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ | 90 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_PROXY_H_ |
| OLD | NEW |