| 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 } | 517 } |
| 518 | 518 |
| 519 bool known_proto = URLRequest::IsHandledURL(url); | 519 bool known_proto = URLRequest::IsHandledURL(url); |
| 520 if (!known_proto) { | 520 if (!known_proto) { |
| 521 CHECK(false); | 521 CHECK(false); |
| 522 } | 522 } |
| 523 | 523 |
| 524 request->set_method("GET"); | 524 request->set_method("GET"); |
| 525 request->set_referrer(referrer.spec()); | 525 request->set_referrer(referrer.spec()); |
| 526 request->set_context(request_context); | 526 request->set_context(request_context); |
| 527 request->set_load_flags(request->load_flags() | |
| 528 net::LOAD_IS_DOWNLOAD); |
| 527 | 529 |
| 528 ExtraRequestInfo* extra_info = | 530 ExtraRequestInfo* extra_info = |
| 529 new ExtraRequestInfo(handler, | 531 new ExtraRequestInfo(handler, |
| 530 ChildProcessInfo::RENDER_PROCESS, | 532 ChildProcessInfo::RENDER_PROCESS, |
| 531 process_id, | 533 process_id, |
| 532 route_id, | 534 route_id, |
| 533 request_id_, | 535 request_id_, |
| 534 "null", // frame_origin | 536 "null", // frame_origin |
| 535 "null", // main_frame_origin | 537 "null", // main_frame_origin |
| 536 ResourceType::SUB_RESOURCE, | 538 ResourceType::SUB_RESOURCE, |
| (...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 case ViewHostMsg_UploadProgress_ACK::ID: | 1553 case ViewHostMsg_UploadProgress_ACK::ID: |
| 1552 case ViewHostMsg_SyncLoad::ID: | 1554 case ViewHostMsg_SyncLoad::ID: |
| 1553 return true; | 1555 return true; |
| 1554 | 1556 |
| 1555 default: | 1557 default: |
| 1556 break; | 1558 break; |
| 1557 } | 1559 } |
| 1558 | 1560 |
| 1559 return false; | 1561 return false; |
| 1560 } | 1562 } |
| OLD | NEW |