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

Unified Diff: chrome/browser/renderer_host/sync_resource_handler.cc

Issue 3133016: Support retrieval of raw headers from network stack (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: nits picked Created 10 years, 3 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/renderer_host/resource_dispatcher_host.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/sync_resource_handler.cc
diff --git a/chrome/browser/renderer_host/sync_resource_handler.cc b/chrome/browser/renderer_host/sync_resource_handler.cc
index 16c057aa3b74c0f68f3e7fdaadc9fbe4a415bba5..f8cd045e1b18563813baf1bdc08491be534abb57 100644
--- a/chrome/browser/renderer_host/sync_resource_handler.cc
+++ b/chrome/browser/renderer_host/sync_resource_handler.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/renderer_host/sync_resource_handler.h"
#include "base/logging.h"
+#include "chrome/browser/debugger/devtools_netlog_observer.h"
#include "chrome/browser/net/load_timing_observer.h"
#include "chrome/browser/renderer_host/global_request_id.h"
#include "chrome/common/render_messages.h"
@@ -41,7 +42,7 @@ bool SyncResourceHandler::OnRequestRedirected(int request_id,
URLRequest* request = rdh_->GetURLRequest(
GlobalRequestID(process_id_, request_id));
LoadTimingObserver::PopulateTimingInfo(request, response);
-
+ DevToolsNetLogObserver::PopulateResponseInfo(request, response);
// TODO(darin): It would be much better if this could live in WebCore, but
// doing so requires API changes at all levels. Similar code exists in
// WebCore/platform/network/cf/ResourceHandleCFNet.cpp :-(
@@ -58,6 +59,7 @@ bool SyncResourceHandler::OnResponseStarted(int request_id,
URLRequest* request = rdh_->GetURLRequest(
GlobalRequestID(process_id_, request_id));
LoadTimingObserver::PopulateTimingInfo(request, response);
+ DevToolsNetLogObserver::PopulateResponseInfo(request, response);
// We don't care about copying the status here.
result_.headers = response->response_head.headers;
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698