summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host/resource_handler.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 03:26:29 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-05 03:26:29 +0000
commite09ba55021ea324864cff41148a0d3ee65539963 (patch)
tree1d9fb31246f6029e3ab9fe56b334c01634ca7436 /chrome/browser/renderer_host/resource_handler.h
parenta9358722ff8a3955c5b4a7430fc16af314653d50 (diff)
downloadchromium_src-e09ba55021ea324864cff41148a0d3ee65539963.zip
chromium_src-e09ba55021ea324864cff41148a0d3ee65539963.tar.gz
chromium_src-e09ba55021ea324864cff41148a0d3ee65539963.tar.bz2
Finish taking out render_messages.h includes from headers.
Review URL: http://codereview.chromium.org/20072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9209 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_handler.h')
-rw-r--r--chrome/browser/renderer_host/resource_handler.h27
1 files changed, 24 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/resource_handler.h b/chrome/browser/renderer_host/resource_handler.h
index 9813094..8973c77 100644
--- a/chrome/browser/renderer_host/resource_handler.h
+++ b/chrome/browser/renderer_host/resource_handler.h
@@ -14,13 +14,34 @@
#include "base/basictypes.h"
#include "base/ref_counted.h"
-#include "chrome/common/render_messages.h"
+#include "chrome/common/filter_policy.h"
#include "googleurl/src/gurl.h"
#include "net/url_request/url_request.h"
+#include "webkit/glue/resource_loader_bridge.h"
-// Simple wrapper that refcounts ViewMsg_Resource_ResponseHead.
+// Parameters for a resource response header.
+struct ResourceResponseHead
+ : webkit_glue::ResourceLoaderBridge::ResponseInfo {
+ // The response status.
+ URLRequestStatus status;
+
+ // Specifies if the resource should be filtered before being displayed
+ // (insecure resources can be filtered to keep the page secure).
+ FilterPolicy::Type filter_policy;
+};
+
+// Parameters for a synchronous resource response.
+struct SyncLoadResult : ResourceResponseHead {
+ // The final URL after any redirects.
+ GURL final_url;
+
+ // The response data.
+ std::string data;
+};
+
+// Simple wrapper that refcounts ResourceResponseHead.
struct ResourceResponse : public base::RefCounted<ResourceResponse> {
- ViewMsg_Resource_ResponseHead response_head;
+ ResourceResponseHead response_head;
};
// The resource dispatcher host uses this interface to push load events to the