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

Unified Diff: chrome/browser/ui/webui/quota_internals_ui.h

Issue 7053009: Add chrome://quota-internals/ resources (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add descriptions Created 9 years, 7 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: 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..c7b90cf0016fd0b930326af699e6eb89b8c786d3
--- /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 "chrome/browser/ui/webui/chrome_url_data_manager.h"
+#include "content/browser/webui/web_ui.h"
+
+class TabContents;
+
+class QuotaInternalsUI : public WebUI {
+ public:
+ explicit QuotaInternalsUI(TabContents* contents);
+ virtual ~QuotaInternalsUI() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI);
+};
+
+namespace quota_internals {
+
+class QuotaInternalsHTMLSource : public ChromeURLDataManager::DataSource {
+ public:
+ QuotaInternalsHTMLSource();
+ virtual void StartDataRequest(const std::string& path,
+ bool is_incognito,
+ int request_id) OVERRIDE;
+ virtual std::string GetMimeType(const std::string&) const;
+
+ private:
+ virtual ~QuotaInternalsHTMLSource() {}
+ DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHTMLSource);
+};
+
+} // namespace quota_internals
+
+#endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_
+

Powered by Google App Engine
This is Rietveld 408576698