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

Side by Side Diff: chrome/browser/renderer_host/sync_resource_handler.cc

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/sync_resource_handler.h" 5 #include "chrome/browser/renderer_host/sync_resource_handler.h"
6
6 #include "base/logging.h" 7 #include "base/logging.h"
7 #include "chrome/common/render_messages.h" 8 #include "chrome/common/render_messages.h"
8 #include "net/base/io_buffer.h" 9 #include "net/base/io_buffer.h"
9 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
10 11
11 SyncResourceHandler::SyncResourceHandler( 12 SyncResourceHandler::SyncResourceHandler(
12 ResourceDispatcherHost::Receiver* receiver, 13 ResourceDispatcherHost::Receiver* receiver,
13 const GURL& url, 14 const GURL& url,
14 IPC::Message* result_message) 15 IPC::Message* result_message)
15 : read_buffer_(new net::IOBuffer(kReadBufSize)), 16 : read_buffer_(new net::IOBuffer(kReadBufSize)),
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 } 88 }
88 89
89 void SyncResourceHandler::OnRequestClosed() { 90 void SyncResourceHandler::OnRequestClosed() {
90 if (!result_message_) 91 if (!result_message_)
91 return; 92 return;
92 93
93 result_message_->set_reply_error(); 94 result_message_->set_reply_error();
94 receiver_->Send(result_message_); 95 receiver_->Send(result_message_);
95 receiver_ = NULL; // URLRequest is gone, and perhaps also the receiver. 96 receiver_ = NULL; // URLRequest is gone, and perhaps also the receiver.
96 } 97 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter_win.cc ('k') | chrome/browser/visitedlink_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698