OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/devtools/protocol/network_handler.h" | 5 #include "content/browser/devtools/protocol/network_handler.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/barrier_closure.h" | 9 #include "base/barrier_closure.h" |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/containers/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/process/process_handle.h" | 13 #include "base/process/process_handle.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/stringprintf.h" | 15 #include "base/strings/stringprintf.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "content/browser/devtools/devtools_session.h" | 17 #include "content/browser/devtools/devtools_session.h" |
18 #include "content/browser/devtools/devtools_url_interceptor_request_job.h" | 18 #include "content/browser/devtools/devtools_url_interceptor_request_job.h" |
19 #include "content/browser/devtools/protocol/page.h" | 19 #include "content/browser/devtools/protocol/page.h" |
20 #include "content/browser/devtools/protocol/security.h" | 20 #include "content/browser/devtools/protocol/security.h" |
21 #include "content/browser/frame_host/frame_tree_node.h" | 21 #include "content/browser/frame_host/frame_tree_node.h" |
22 #include "content/browser/frame_host/render_frame_host_impl.h" | 22 #include "content/browser/frame_host/render_frame_host_impl.h" |
23 #include "content/common/navigation_params.h" | 23 #include "content/common/navigation_params.h" |
24 #include "content/common/resource_request.h" | |
25 #include "content/common/resource_request_completion_status.h" | 24 #include "content/common/resource_request_completion_status.h" |
26 #include "content/public/browser/browser_context.h" | 25 #include "content/public/browser/browser_context.h" |
27 #include "content/public/browser/browser_thread.h" | 26 #include "content/public/browser/browser_thread.h" |
28 #include "content/public/browser/browsing_data_remover.h" | 27 #include "content/public/browser/browsing_data_remover.h" |
29 #include "content/public/browser/content_browser_client.h" | 28 #include "content/public/browser/content_browser_client.h" |
30 #include "content/public/browser/render_process_host.h" | 29 #include "content/public/browser/render_process_host.h" |
31 #include "content/public/browser/resource_context.h" | 30 #include "content/public/browser/resource_context.h" |
32 #include "content/public/browser/site_instance.h" | 31 #include "content/public/browser/site_instance.h" |
33 #include "content/public/browser/storage_partition.h" | 32 #include "content/public/browser/storage_partition.h" |
34 #include "content/public/browser/web_contents.h" | 33 #include "content/public/browser/web_contents.h" |
35 #include "content/public/common/content_client.h" | 34 #include "content/public/common/content_client.h" |
36 #include "content/public/common/content_switches.h" | 35 #include "content/public/common/content_switches.h" |
37 #include "content/public/common/resource_devtools_info.h" | 36 #include "content/public/common/resource_devtools_info.h" |
| 37 #include "content/public/common/resource_request.h" |
38 #include "content/public/common/resource_response.h" | 38 #include "content/public/common/resource_response.h" |
39 #include "net/base/net_errors.h" | 39 #include "net/base/net_errors.h" |
40 #include "net/base/upload_bytes_element_reader.h" | 40 #include "net/base/upload_bytes_element_reader.h" |
41 #include "net/cookies/cookie_store.h" | 41 #include "net/cookies/cookie_store.h" |
42 #include "net/http/http_response_headers.h" | 42 #include "net/http/http_response_headers.h" |
43 #include "net/url_request/url_request_context.h" | 43 #include "net/url_request/url_request_context.h" |
44 #include "net/url_request/url_request_context_getter.h" | 44 #include "net/url_request/url_request_context_getter.h" |
45 | 45 |
46 namespace content { | 46 namespace content { |
47 namespace protocol { | 47 namespace protocol { |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
934 .SetReferrerPolicy(referrerPolicy(request->referrer_policy())) | 934 .SetReferrerPolicy(referrerPolicy(request->referrer_policy())) |
935 .Build(); | 935 .Build(); |
936 std::string post_data; | 936 std::string post_data; |
937 if (GetPostData(request, &post_data)) | 937 if (GetPostData(request, &post_data)) |
938 request_object->SetPostData(std::move(post_data)); | 938 request_object->SetPostData(std::move(post_data)); |
939 return request_object; | 939 return request_object; |
940 } | 940 } |
941 | 941 |
942 } // namespace protocol | 942 } // namespace protocol |
943 } // namespace content | 943 } // namespace content |
OLD | NEW |