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

Side by Side Diff: content/browser/loader/sync_resource_handler.cc

Issue 16294003: Update content/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/loader/sync_resource_handler.h" 5 #include "content/browser/loader/sync_resource_handler.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/devtools/devtools_netlog_observer.h" 8 #include "content/browser/devtools/devtools_netlog_observer.h"
9 #include "content/browser/loader/resource_dispatcher_host_impl.h" 9 #include "content/browser/loader/resource_dispatcher_host_impl.h"
10 #include "content/browser/loader/resource_message_filter.h" 10 #include "content/browser/loader/resource_message_filter.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 result_.final_url = new_url; 64 result_.final_url = new_url;
65 return true; 65 return true;
66 } 66 }
67 67
68 bool SyncResourceHandler::OnResponseStarted( 68 bool SyncResourceHandler::OnResponseStarted(
69 int request_id, 69 int request_id,
70 ResourceResponse* response, 70 ResourceResponse* response,
71 bool* defer) { 71 bool* defer) {
72 if (rdh_->delegate()) { 72 if (rdh_->delegate()) {
73 rdh_->delegate()->OnResponseStarted(request_, filter_->resource_context(), 73 rdh_->delegate()->OnResponseStarted(
74 response, filter_); 74 request_, filter_->resource_context(), response, filter_.get());
75 } 75 }
76 76
77 DevToolsNetLogObserver::PopulateResponseInfo(request_, response); 77 DevToolsNetLogObserver::PopulateResponseInfo(request_, response);
78 78
79 // We don't care about copying the status here. 79 // We don't care about copying the status here.
80 result_.headers = response->head.headers; 80 result_.headers = response->head.headers;
81 result_.mime_type = response->head.mime_type; 81 result_.mime_type = response->head.mime_type;
82 result_.charset = response->head.charset; 82 result_.charset = response->head.charset;
83 result_.download_file_path = response->head.download_file_path; 83 result_.download_file_path = response->head.download_file_path;
84 result_.request_time = response->head.request_time; 84 result_.request_time = response->head.request_time;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 127
128 void SyncResourceHandler::OnDataDownloaded( 128 void SyncResourceHandler::OnDataDownloaded(
129 int request_id, 129 int request_id,
130 int bytes_downloaded) { 130 int bytes_downloaded) {
131 // Sync requests don't involve ResourceMsg_DataDownloaded messages 131 // Sync requests don't involve ResourceMsg_DataDownloaded messages
132 // being sent back to renderers as progress is made. 132 // being sent back to renderers as progress is made.
133 } 133 }
134 134
135 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/stream_resource_handler.cc ('k') | content/browser/loader/throttling_resource_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698