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

Unified Diff: content/public/child/resource_dispatcher_delegate.h

Issue 218973002: Extract Peer interface out of ResourceLoaderBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASED Created 6 years, 9 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 | « content/public/child/request_peer.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/child/resource_dispatcher_delegate.h
diff --git a/content/public/child/resource_dispatcher_delegate.h b/content/public/child/resource_dispatcher_delegate.h
index 8c67e075900ba879d6eb3d18204295adc313cf23..137519db56a34649ccf04bf2c43af7d36d38ec9e 100644
--- a/content/public/child/resource_dispatcher_delegate.h
+++ b/content/public/child/resource_dispatcher_delegate.h
@@ -5,24 +5,30 @@
#ifndef CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
#define CONTENT_PUBLIC_CHILD_RESOURCE_DISPATCHER_DELEGATE_H_
+#include <string>
+
#include "content/common/content_export.h"
-#include "webkit/child/resource_loader_bridge.h"
+#include "webkit/common/resource_type.h"
+
+class GURL;
namespace content {
+class RequestPeer;
+
// Interface that allows observing request events and optionally replacing the
// peer.
class CONTENT_EXPORT ResourceDispatcherDelegate {
public:
virtual ~ResourceDispatcherDelegate() {}
- virtual webkit_glue::ResourceLoaderBridge::Peer* OnRequestComplete(
- webkit_glue::ResourceLoaderBridge::Peer* current_peer,
+ virtual RequestPeer* OnRequestComplete(
+ RequestPeer* current_peer,
ResourceType::Type resource_type,
int error_code) = 0;
- virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(
- webkit_glue::ResourceLoaderBridge::Peer* current_peer,
+ virtual RequestPeer* OnReceivedResponse(
+ RequestPeer* current_peer,
const std::string& mime_type,
const GURL& url) = 0;
};
« no previous file with comments | « content/public/child/request_peer.h ('k') | webkit/child/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698