Chromium Code Reviews| Index: chrome/browser/ui/webui/quota_internals_ui.h |
| diff --git a/chrome/browser/ui/webui/quota_internals_ui.h b/chrome/browser/ui/webui/quota_internals_ui.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..cca2b219dc8d51dd05bd27fbdf594a7d4635573c |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/quota_internals_ui.h |
| @@ -0,0 +1,43 @@ |
| +// Copyright (c) 2011 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 CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |
| +#pragma once |
| + |
| +#include <string> |
| + |
| +#include "base/values.h" |
| +#include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
| +#include "content/browser/webui/web_ui.h" |
| + |
| +class QuotaInternalsUI : public WebUI { |
| + public: |
| + explicit QuotaInternalsUI(TabContents* contents); |
|
Evan Stade
2011/06/04 02:43:17
define virtual destructor
tzik
2011/06/06 10:57:44
Done.
|
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI); |
| +}; |
| + |
| +namespace quota_internals { |
| + |
| +class QuotaInternalsHTMLSource : public ChromeURLDataManager::DataSource { |
| + public: |
| + static const char kStringsJSPath[]; |
| + |
| + QuotaInternalsHTMLSource(); |
|
Evan Stade
2011/06/04 02:43:17
define virtual destructor
tzik
2011/06/06 10:57:44
Done.
|
| + virtual void StartDataRequest(const std::string& path, |
| + bool is_incognito, |
| + int request_id) OVERRIDE; |
| + virtual std::string GetMimeType(const std::string& path) const; |
| + |
| + private: |
| + void AddLocalizedString(const std::string& name, int ids); |
| + |
| + DictionaryValue localized_strings_; |
| + DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHTMLSource); |
| +}; |
| + |
| +} // namespace quota_internals |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ |