| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_QUOTA_INTERNALS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "content/public/browser/web_ui_message_handler.h" | 13 #include "content/public/browser/web_ui_message_handler.h" |
| 14 #include "webkit/common/quota/quota_types.h" | 14 #include "storage/common/quota/quota_types.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class Value; | 17 class Value; |
| 18 class ListValue; | 18 class ListValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace quota_internals { | 21 namespace quota_internals { |
| 22 | 22 |
| 23 class QuotaInternalsProxy; | 23 class QuotaInternalsProxy; |
| 24 class GlobalStorageInfo; | 24 class GlobalStorageInfo; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 42 void ReportStatistics(const Statistics& stats); | 42 void ReportStatistics(const Statistics& stats); |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 void OnRequestInfo(const base::ListValue*); | 45 void OnRequestInfo(const base::ListValue*); |
| 46 void SendMessage(const std::string& message, const base::Value& value); | 46 void SendMessage(const std::string& message, const base::Value& value); |
| 47 | 47 |
| 48 scoped_refptr<QuotaInternalsProxy> proxy_; | 48 scoped_refptr<QuotaInternalsProxy> proxy_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHandler); | 50 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHandler); |
| 51 }; | 51 }; |
| 52 } // quota_internals | 52 } // namespace quota_internals |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ | 54 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_QUOTA_INTERNALS_HANDLER_H_ |
| OLD | NEW |