| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" | 7 #include "chrome/browser/renderer_host/resource_dispatcher_host.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 process_id, | 382 process_id, |
| 383 route_id, | 383 route_id, |
| 384 request_data.url, | 384 request_data.url, |
| 385 request_data.resource_type, | 385 request_data.resource_type, |
| 386 safe_browsing_, | 386 safe_browsing_, |
| 387 this, | 387 this, |
| 388 receiver_); | 388 receiver_); |
| 389 } | 389 } |
| 390 | 390 |
| 391 // Insert a buffered event handler before the actual one. | 391 // Insert a buffered event handler before the actual one. |
| 392 handler = new BufferedResourceHandler(handler, this, request); | 392 handler = new BufferedResourceHandler(handler, this, request, process_id, |
| 393 route_id); |
| 393 | 394 |
| 394 // Make extra info and read footer (contains request ID). | 395 // Make extra info and read footer (contains request ID). |
| 395 ExtraRequestInfo* extra_info = | 396 ExtraRequestInfo* extra_info = |
| 396 new ExtraRequestInfo(handler, | 397 new ExtraRequestInfo(handler, |
| 397 process_type, | 398 process_type, |
| 398 process_id, | 399 process_id, |
| 399 route_id, | 400 route_id, |
| 400 request_id, | 401 request_id, |
| 401 request_data.frame_origin, | 402 request_data.frame_origin, |
| 402 request_data.main_frame_origin, | 403 request_data.main_frame_origin, |
| (...skipping 1155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 case ViewHostMsg_UploadProgress_ACK::ID: | 1559 case ViewHostMsg_UploadProgress_ACK::ID: |
| 1559 case ViewHostMsg_SyncLoad::ID: | 1560 case ViewHostMsg_SyncLoad::ID: |
| 1560 return true; | 1561 return true; |
| 1561 | 1562 |
| 1562 default: | 1563 default: |
| 1563 break; | 1564 break; |
| 1564 } | 1565 } |
| 1565 | 1566 |
| 1566 return false; | 1567 return false; |
| 1567 } | 1568 } |
| OLD | NEW |