OLD | NEW |
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 // 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 "content/browser/loader/resource_dispatcher_host_impl.h" | 7 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <set> | 10 #include <set> |
(...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 PROCESS_TYPE_RENDERER, | 1329 PROCESS_TYPE_RENDERER, |
1330 child_id, | 1330 child_id, |
1331 route_id, | 1331 route_id, |
1332 0, | 1332 0, |
1333 request_id_, | 1333 request_id_, |
1334 MSG_ROUTING_NONE, // render_frame_id | 1334 MSG_ROUTING_NONE, // render_frame_id |
1335 false, // is_main_frame | 1335 false, // is_main_frame |
1336 false, // parent_is_main_frame | 1336 false, // parent_is_main_frame |
1337 -1, // parent_render_frame_id | 1337 -1, // parent_render_frame_id |
1338 RESOURCE_TYPE_SUB_RESOURCE, | 1338 RESOURCE_TYPE_SUB_RESOURCE, |
1339 PAGE_TRANSITION_LINK, | 1339 ui::PAGE_TRANSITION_LINK, |
1340 false, // should_replace_current_entry | 1340 false, // should_replace_current_entry |
1341 download, // is_download | 1341 download, // is_download |
1342 false, // is_stream | 1342 false, // is_stream |
1343 download, // allow_download | 1343 download, // allow_download |
1344 false, // has_user_gesture | 1344 false, // has_user_gesture |
1345 false, // enable_load_timing | 1345 false, // enable_load_timing |
1346 blink::WebReferrerPolicyDefault, | 1346 blink::WebReferrerPolicyDefault, |
1347 blink::WebPageVisibilityStateVisible, | 1347 blink::WebPageVisibilityStateVisible, |
1348 context, | 1348 context, |
1349 base::WeakPtr<ResourceMessageFilter>(), // filter | 1349 base::WeakPtr<ResourceMessageFilter>(), // filter |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2049 | 2049 |
2050 // Add a flag to selectively bypass the data reduction proxy if the resource | 2050 // Add a flag to selectively bypass the data reduction proxy if the resource |
2051 // type is not an image. | 2051 // type is not an image. |
2052 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) | 2052 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) |
2053 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; | 2053 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; |
2054 | 2054 |
2055 return load_flags; | 2055 return load_flags; |
2056 } | 2056 } |
2057 | 2057 |
2058 } // namespace content | 2058 } // namespace content |
OLD | NEW |