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

Unified Diff: chrome/common/resource_dispatcher.cc

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: remove host_render_view_id Created 9 years, 10 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: chrome/common/resource_dispatcher.cc
diff --git a/chrome/common/resource_dispatcher.cc b/chrome/common/resource_dispatcher.cc
index 59293701742b547dc119560bca8347d47fa031fc..f969be45a7dec680c6a19e30f763a0c264c9c69d 100644
--- a/chrome/common/resource_dispatcher.cc
+++ b/chrome/common/resource_dispatcher.cc
@@ -40,9 +40,7 @@ namespace webkit_glue {
class IPCResourceLoaderBridge : public ResourceLoaderBridge {
public:
IPCResourceLoaderBridge(ResourceDispatcher* dispatcher,
- const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info,
- int host_renderer_id,
- int host_render_view_id);
+ const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info);
virtual ~IPCResourceLoaderBridge();
// ResourceLoaderBridge
@@ -75,28 +73,15 @@ class IPCResourceLoaderBridge : public ResourceLoaderBridge {
// The routing id used when sending IPC messages.
int routing_id_;
-
- // The following two members are specified if the request is initiated by
- // a plugin like Gears.
-
- // Contains the id of the host renderer.
- int host_renderer_id_;
-
- // Contains the id of the host render view.
- int host_render_view_id_;
};
IPCResourceLoaderBridge::IPCResourceLoaderBridge(
ResourceDispatcher* dispatcher,
- const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info,
- int host_renderer_id,
- int host_render_view_id)
+ const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
: peer_(NULL),
dispatcher_(dispatcher),
request_id_(-1),
- routing_id_(request_info.routing_id),
- host_renderer_id_(host_renderer_id),
- host_render_view_id_(host_render_view_id) {
+ routing_id_(request_info.routing_id) {
DCHECK(dispatcher_) << "no resource dispatcher";
request_.method = request_info.method;
request_.url = request_info.url;
@@ -110,8 +95,6 @@ IPCResourceLoaderBridge::IPCResourceLoaderBridge(
request_.appcache_host_id = request_info.appcache_host_id;
request_.download_to_file = request_info.download_to_file;
request_.has_user_gesture = request_info.has_user_gesture;
- request_.host_renderer_id = host_renderer_id_;
- request_.host_render_view_id = host_render_view_id_;
}
IPCResourceLoaderBridge::~IPCResourceLoaderBridge() {
@@ -561,12 +544,8 @@ void ResourceDispatcher::FlushDeferredMessages(int request_id) {
}
webkit_glue::ResourceLoaderBridge* ResourceDispatcher::CreateBridge(
- const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info,
- int host_renderer_id,
- int host_render_view_id) {
- return new webkit_glue::IPCResourceLoaderBridge(this, request_info,
- host_renderer_id,
- host_render_view_id);
+ const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) {
+ return new webkit_glue::IPCResourceLoaderBridge(this, request_info);
}
bool ResourceDispatcher::IsResourceDispatcherMessage(

Powered by Google App Engine
This is Rietveld 408576698