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

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

Issue 7259007: Revert 90447 - Add chrome://quota-internals/ resources (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_ui.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/quota_internals_ui.cc
===================================================================
--- chrome/browser/ui/webui/quota_internals_ui.cc (revision 90450)
+++ chrome/browser/ui/webui/quota_internals_ui.cc (working copy)
@@ -1,50 +0,0 @@
-// 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.
-
-#include "chrome/browser/ui/webui/quota_internals_ui.h"
-
-#include <algorithm>
-#include <string>
-
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/url_constants.h"
-#include "content/browser/tab_contents/tab_contents.h"
-#include "content/common/json_value_serializer.h"
-#include "grit/quota_internals_resources.h"
-#include "ui/base/l10n/l10n_util.h"
-#include "ui/base/resource/resource_bundle.h"
-
-QuotaInternalsUI::QuotaInternalsUI(TabContents* contents)
- : ChromeWebUI(contents) {
- // TODO(tzik): implement and attach message handler
- contents->profile()->GetChromeURLDataManager()->
- AddDataSource(new quota_internals::QuotaInternalsHTMLSource);
-}
-
-namespace quota_internals {
-
-const char QuotaInternalsHTMLSource::kStringsJSPath[] = "strings.js";
-
-QuotaInternalsHTMLSource::QuotaInternalsHTMLSource()
- : ChromeWebUIDataSource(chrome::kChromeUIQuotaInternalsHost) {
-}
-
-void QuotaInternalsHTMLSource::StartDataRequest(const std::string& path,
- bool is_incognito,
- int request_id) OVERRIDE {
- if (path == kStringsJSPath)
- SendLocalizedStringsAsJSON(request_id);
- else
- SendFromResourceBundle(request_id, IDR_QUOTA_INTERNALS_MAIN_HTML);
-}
-
-std::string QuotaInternalsHTMLSource::GetMimeType(
- const std::string& path) const {
- if (path == kStringsJSPath)
- return "application/javascript";
- else
- return "text/html";
-}
-
-} // namespace quota_internals
« no previous file with comments | « chrome/browser/ui/webui/quota_internals_ui.h ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698