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

Unified Diff: content/child/npapi/plugin_url_fetcher.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 | « chrome/renderer/security_filter_peer.cc ('k') | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_url_fetcher.h
diff --git a/content/child/npapi/plugin_url_fetcher.h b/content/child/npapi/plugin_url_fetcher.h
index dca40ecab1a86a2fa139dbff6a345587939ece02..e21dc20e47b50479ee53dabf679d25a8f30f4bf7 100644
--- a/content/child/npapi/plugin_url_fetcher.h
+++ b/content/child/npapi/plugin_url_fetcher.h
@@ -8,8 +8,8 @@
#include <string>
#include "base/memory/scoped_ptr.h"
+#include "content/public/child/request_peer.h"
#include "url/gurl.h"
-#include "webkit/child/resource_loader_bridge.h"
namespace webkit_glue {
class MultipartResponseDelegate;
@@ -20,7 +20,7 @@ namespace content {
class PluginStreamUrl;
// Fetches URLS for a plugin using ResourceDispatcher.
-class PluginURLFetcher : public webkit_glue::ResourceLoaderBridge::Peer {
+class PluginURLFetcher : public RequestPeer {
public:
PluginURLFetcher(PluginStreamUrl* plugin_stream,
const GURL& url,
@@ -54,7 +54,7 @@ class PluginURLFetcher : public webkit_glue::ResourceLoaderBridge::Peer {
bool pending_failure_notification() { return pending_failure_notification_; }
private:
- // webkit_glue::ResourceLoaderBridge::Peer implementation:
+ // RequestPeer implementation:
virtual void OnUploadProgress(uint64 position, uint64 size) OVERRIDE;
virtual bool OnReceivedRedirect(const GURL& new_url,
const webkit_glue::ResourceResponseInfo& info,
@@ -66,13 +66,12 @@ class PluginURLFetcher : public webkit_glue::ResourceLoaderBridge::Peer {
virtual void OnReceivedData(const char* data,
int data_length,
int encoded_data_length) OVERRIDE;
- virtual void OnCompletedRequest(
- int error_code,
- bool was_ignored_by_handler,
- bool stale_copy_in_cache,
- const std::string& security_info,
- const base::TimeTicks& completion_time,
- int64 total_transfer_size) OVERRIDE;
+ virtual void OnCompletedRequest(int error_code,
+ bool was_ignored_by_handler,
+ bool stale_copy_in_cache,
+ const std::string& security_info,
+ const base::TimeTicks& completion_time,
+ int64 total_transfer_size) OVERRIDE;
PluginStreamUrl* plugin_stream_;
GURL url_;
« no previous file with comments | « chrome/renderer/security_filter_peer.cc ('k') | content/child/npapi/plugin_url_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698