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

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

Issue 12094085: LoadTiming in net part 7: Hooking it all up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 7 years, 9 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/common/inter_process_time_ticks_converter.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
85 result_.response_time = response->head.response_time; 85 result_.response_time = response->head.response_time;
86 result_.connection_id = response->head.connection_id;
87 result_.connection_reused = response->head.connection_reused;
88 result_.load_timing = response->head.load_timing; 86 result_.load_timing = response->head.load_timing;
89 result_.devtools_info = response->head.devtools_info; 87 result_.devtools_info = response->head.devtools_info;
90 return true; 88 return true;
91 } 89 }
92 90
93 bool SyncResourceHandler::OnWillStart(int request_id, 91 bool SyncResourceHandler::OnWillStart(int request_id,
94 const GURL& url, 92 const GURL& url,
95 bool* defer) { 93 bool* defer) {
96 return true; 94 return true;
97 } 95 }
(...skipping 30 matching lines...) Expand all
128 } 126 }
129 127
130 void SyncResourceHandler::OnDataDownloaded( 128 void SyncResourceHandler::OnDataDownloaded(
131 int request_id, 129 int request_id,
132 int bytes_downloaded) { 130 int bytes_downloaded) {
133 // Sync requests don't involve ResourceMsg_DataDownloaded messages 131 // Sync requests don't involve ResourceMsg_DataDownloaded messages
134 // being sent back to renderers as progress is made. 132 // being sent back to renderers as progress is made.
135 } 133 }
136 134
137 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | content/common/inter_process_time_ticks_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698