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

Unified Diff: net/url_request/url_request_view_net_internals_job.cc

Issue 521061: Net: Allow about:cache to show contents of urls with arguments.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_view_net_internals_job.cc
===================================================================
--- net/url_request/url_request_view_net_internals_job.cc (revision 35224)
+++ net/url_request/url_request_view_net_internals_job.cc (working copy)
@@ -536,6 +536,16 @@
URLRequestContext* context = request_->context();
std::string details = url_format_->GetDetails(request_->url());
+ data->clear();
+
+ // Use a different handler for "view-cache/*" subpaths.
+ std::string cache_key;
+ if (GetViewCacheKeyFromPath(details, &cache_key)) {
+ GURL url = url_format_->MakeURL(kViewHttpCacheSubPath + std::string("/"));
+ ViewCacheHelper::GetEntryInfoHTML(cache_key, context, url.spec(), data);
+ return true;
+ }
+
std::string query;
// Split out the query parameters.
@@ -546,16 +556,6 @@
details = details.substr(0, query_start);
}
- data->clear();
-
- // Use a different handler for "view-cache/*" subpaths.
- std::string cache_key;
- if (GetViewCacheKeyFromPath(details, &cache_key)) {
- GURL url = url_format_->MakeURL(kViewHttpCacheSubPath + std::string("/"));
- ViewCacheHelper::GetEntryInfoHTML(cache_key, context, url.spec(), data);
- return true;
- }
-
data->append("<!DOCTYPE HTML>"
"<html><head><title>Network internals</title>"
"<style>"
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698