| 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>"
|
|
|