OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <string> |
| 10 |
| 11 #include "base/values.h" |
| 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| 13 #include "chrome/browser/ui/webui/chrome_web_ui.h" |
| 14 |
| 15 class QuotaInternalsUI : public ChromeWebUI { |
| 16 public: |
| 17 explicit QuotaInternalsUI(TabContents* contents); |
| 18 virtual ~QuotaInternalsUI() {} |
| 19 private: |
| 20 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI); |
| 21 }; |
| 22 |
| 23 namespace quota_internals { |
| 24 |
| 25 class QuotaInternalsHTMLSource : public ChromeURLDataManager::DataSource { |
| 26 public: |
| 27 static const char kStringsJSPath[]; |
| 28 |
| 29 QuotaInternalsHTMLSource(); |
| 30 virtual void StartDataRequest(const std::string& path, |
| 31 bool is_incognito, |
| 32 int request_id) OVERRIDE; |
| 33 virtual std::string GetMimeType(const std::string& path) const; |
| 34 |
| 35 private: |
| 36 virtual ~QuotaInternalsHTMLSource() {} |
| 37 void AddLocalizedString(const std::string& name, int ids); |
| 38 |
| 39 DictionaryValue localized_strings_; |
| 40 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHTMLSource); |
| 41 }; |
| 42 |
| 43 } // namespace quota_internals |
| 44 |
| 45 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |
OLD | NEW |