summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_loader_bridge.h
diff options
context:
space:
mode:
authorcaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 16:16:05 +0000
committercaseq@google.com <caseq@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-06 16:16:05 +0000
commitb707912881d14be9da53f20e35937f7e4f458550 (patch)
treeaeb92912f2c2550778cfcb5a37d2d91a226da99a /webkit/glue/resource_loader_bridge.h
parentabc7e06dd115173991e19456940f3af933287b10 (diff)
downloadchromium_src-b707912881d14be9da53f20e35937f7e4f458550.zip
chromium_src-b707912881d14be9da53f20e35937f7e4f458550.tar.gz
chromium_src-b707912881d14be9da53f20e35937f7e4f458550.tar.bz2
Added support for raw headers.
Added DevToolsNetLogObserver (used by the above) BUG=http://crbug.com/41916 TEST=none Review URL: http://codereview.chromium.org/3133016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61648 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/resource_loader_bridge.h')
-rw-r--r--webkit/glue/resource_loader_bridge.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/webkit/glue/resource_loader_bridge.h b/webkit/glue/resource_loader_bridge.h
index eae1404..99824b4 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.