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

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

Issue 3170020: Completely revert all my IPC work to see if this was what regressed the page cycler. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase 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
7 #include "base/logging.h" 6 #include "base/logging.h"
8 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
9 #include "net/base/io_buffer.h" 8 #include "net/base/io_buffer.h"
10 #include "net/http/http_response_headers.h" 9 #include "net/http/http_response_headers.h"
11 10
12 SyncResourceHandler::SyncResourceHandler( 11 SyncResourceHandler::SyncResourceHandler(
13 ResourceDispatcherHost::Receiver* receiver, 12 ResourceDispatcherHost::Receiver* receiver,
14 const GURL& url, 13 const GURL& url,
15 IPC::Message* result_message) 14 IPC::Message* result_message)
16 : read_buffer_(new net::IOBuffer(kReadBufSize)), 15 : read_buffer_(new net::IOBuffer(kReadBufSize)),
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 87 }
89 88
90 void SyncResourceHandler::OnRequestClosed() { 89 void SyncResourceHandler::OnRequestClosed() {
91 if (!result_message_) 90 if (!result_message_)
92 return; 91 return;
93 92
94 result_message_->set_reply_error(); 93 result_message_->set_reply_error();
95 receiver_->Send(result_message_); 94 receiver_->Send(result_message_);
96 receiver_ = NULL; // URLRequest is gone, and perhaps also the receiver. 95 receiver_ = NULL; // URLRequest is gone, and perhaps also the receiver.
97 } 96 }
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