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

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: 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
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..33809df06986569fcc0a2be588bbfc69a13b4e87 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 RequestDelegatePeer;
+
// 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 RequestDelegatePeer* OnRequestComplete(
+ RequestDelegatePeer* current_peer,
ResourceType::Type resource_type,
int error_code) = 0;
- virtual webkit_glue::ResourceLoaderBridge::Peer* OnReceivedResponse(
- webkit_glue::ResourceLoaderBridge::Peer* current_peer,
+ virtual RequestDelegatePeer* OnReceivedResponse(
+ RequestDelegatePeer* current_peer,
const std::string& mime_type,
const GURL& url) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698