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/child/resource_dispatcher.h" | 7 #include "content/child/resource_dispatcher.h" |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/debug/alias.h" | 12 #include "base/debug/alias.h" |
13 #include "base/debug/dump_without_crashing.h" | 13 #include "base/debug/dump_without_crashing.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/memory/shared_memory.h" | 15 #include "base/memory/shared_memory.h" |
16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
17 #include "base/metrics/histogram.h" | 17 #include "base/metrics/histogram.h" |
18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "content/child/request_extra_data.h" | 19 #include "content/child/request_extra_data.h" |
20 #include "content/child/request_info.h" | 20 #include "content/child/request_info.h" |
21 #include "content/child/shared_memory_received_data_factory.h" | 21 #include "content/child/shared_memory_received_data_factory.h" |
22 #include "content/child/site_isolation_policy.h" | 22 #include "content/child/site_isolation_stats_gatherer.h" |
23 #include "content/child/sync_load_response.h" | 23 #include "content/child/sync_load_response.h" |
24 #include "content/child/threaded_data_provider.h" | 24 #include "content/child/threaded_data_provider.h" |
25 #include "content/common/inter_process_time_ticks_converter.h" | 25 #include "content/common/inter_process_time_ticks_converter.h" |
26 #include "content/common/resource_messages.h" | 26 #include "content/common/resource_messages.h" |
27 #include "content/public/child/fixed_received_data.h" | 27 #include "content/public/child/fixed_received_data.h" |
28 #include "content/public/child/request_peer.h" | 28 #include "content/public/child/request_peer.h" |
29 #include "content/public/child/resource_dispatcher_delegate.h" | 29 #include "content/public/child/resource_dispatcher_delegate.h" |
30 #include "content/public/common/resource_response.h" | 30 #include "content/public/common/resource_response.h" |
31 #include "content/public/common/resource_type.h" | 31 #include "content/public/common/resource_type.h" |
32 #include "net/base/net_errors.h" | 32 #include "net/base/net_errors.h" |
(...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 extra_data->transferred_request_request_id(); | 788 extra_data->transferred_request_request_id(); |
789 request->service_worker_provider_id = | 789 request->service_worker_provider_id = |
790 extra_data->service_worker_provider_id(); | 790 extra_data->service_worker_provider_id(); |
791 request->request_body = request_body; | 791 request->request_body = request_body; |
792 if (frame_origin) | 792 if (frame_origin) |
793 *frame_origin = extra_data->frame_origin(); | 793 *frame_origin = extra_data->frame_origin(); |
794 return request.Pass(); | 794 return request.Pass(); |
795 } | 795 } |
796 | 796 |
797 } // namespace content | 797 } // namespace content |
OLD | NEW |