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

Unified Diff: webkit/glue/resource_loader_bridge.h

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 | « net/http/http_net_log_params.h ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/resource_loader_bridge.h
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h
index eae14045e8608309ef1f4d6000c297998a94d83d..99824b43510a1910fcc7d96623106dd4cb48a63b 100644
--- a/webkit/glue/resource_loader_bridge.h
+++ b/webkit/glue/resource_loader_bridge.h
@@ -17,6 +17,9 @@
#ifndef WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
#define WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_
+#include <utility>
+#include <vector>
+
#include "build/build_config.h"
#if defined(OS_POSIX)
#include "base/file_descriptor_posix.h"
@@ -24,7 +27,9 @@
#include "base/file_path.h"
#include "base/platform_file.h"
#include "base/ref_counted.h"
+#include "base/scoped_ptr.h"
#include "base/time.h"
+#include "base/values.h"
#include "googleurl/src/gurl.h"
#include "net/url_request/url_request_status.h"
#include "webkit/glue/resource_type.h"
@@ -147,6 +152,13 @@ class ResourceLoaderBridge {
int32 receive_headers_end;
};
+ struct DevToolsInfo : base::RefCounted<DevToolsInfo> {
+ typedef std::vector<std::pair<std::string, std::string> >
+ HeadersVector;
+ HeadersVector request_headers;
+ HeadersVector response_headers;
+ };
+
struct ResponseInfo {
ResponseInfo();
~ResponseInfo();
@@ -194,6 +206,11 @@ class ResourceLoaderBridge {
// Tools.
LoadTimingInfo load_timing;
+ // Actual request and response headers, as obtained from the network stack.
+ // Only present if request had LOAD_REPORT_RAW_HEADERS in load_flags, and
+ // requesting renderer had CanReadRowCookies permission.
+ scoped_refptr<DevToolsInfo> devtools_info;
+
// The path to a file that will contain the response body. It may only
// contain a portion of the response body at the time that the ResponseInfo
// becomes available.
« no previous file with comments | « net/http/http_net_log_params.h ('k') | webkit/glue/weburlloader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698