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

Side by Side Diff: content/browser/renderer_host/cross_site_resource_handler.cc

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "chrome/browser/renderer_host/cross_site_resource_handler.h" 7 #include "content/browser/renderer_host/cross_site_resource_handler.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/renderer_host/global_request_id.h" 10 #include "content/browser/renderer_host/global_request_id.h"
11 #include "chrome/browser/renderer_host/render_view_host.h" 11 #include "content/browser/renderer_host/render_view_host.h"
12 #include "chrome/browser/renderer_host/render_view_host_delegate.h" 12 #include "content/browser/renderer_host/render_view_host_delegate.h"
13 #include "chrome/browser/renderer_host/render_view_host_notification_task.h" 13 #include "content/browser/renderer_host/render_view_host_notification_task.h"
14 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" 14 #include "content/browser/renderer_host/resource_dispatcher_host.h"
15 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 15 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
16 #include "net/base/io_buffer.h" 16 #include "net/base/io_buffer.h"
17 17
18 CrossSiteResourceHandler::CrossSiteResourceHandler( 18 CrossSiteResourceHandler::CrossSiteResourceHandler(
19 ResourceHandler* handler, 19 ResourceHandler* handler,
20 int render_process_host_id, 20 int render_process_host_id,
21 int render_view_id, 21 int render_view_id,
22 ResourceDispatcherHost* resource_dispatcher_host) 22 ResourceDispatcherHost* resource_dispatcher_host)
23 : next_handler_(handler), 23 : next_handler_(handler),
24 render_process_host_id_(render_process_host_id), 24 render_process_host_id_(render_process_host_id),
25 render_view_id_(render_view_id), 25 render_view_id_(render_view_id),
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // starting, so that it can tell its old renderer to run its onunload 210 // starting, so that it can tell its old renderer to run its onunload
211 // handler now. We will wait to hear the corresponding ClosePage_ACK. 211 // handler now. We will wait to hear the corresponding ClosePage_ACK.
212 CallRenderViewHostRendererManagementDelegate( 212 CallRenderViewHostRendererManagementDelegate(
213 render_process_host_id_, render_view_id_, 213 render_process_host_id_, render_view_id_,
214 &RenderViewHostDelegate::RendererManagement::OnCrossSiteResponse, 214 &RenderViewHostDelegate::RendererManagement::OnCrossSiteResponse,
215 render_process_host_id_, request_id); 215 render_process_host_id_, request_id);
216 216
217 // TODO(creis): If the above call should fail, then we need to notify the IO 217 // TODO(creis): If the above call should fail, then we need to notify the IO
218 // thread to proceed anyway, using ResourceDispatcherHost::OnClosePageACK. 218 // thread to proceed anyway, using ResourceDispatcherHost::OnClosePageACK.
219 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698