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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 request.referrer_policy = blink::WebReferrerPolicyDefault; | 135 request.referrer_policy = blink::WebReferrerPolicyDefault; |
136 request.load_flags = 0; | 136 request.load_flags = 0; |
137 request.origin_pid = 0; | 137 request.origin_pid = 0; |
138 request.resource_type = type; | 138 request.resource_type = type; |
139 request.request_context = 0; | 139 request.request_context = 0; |
140 request.appcache_host_id = kAppCacheNoHostId; | 140 request.appcache_host_id = kAppCacheNoHostId; |
141 request.download_to_file = false; | 141 request.download_to_file = false; |
142 request.is_main_frame = true; | 142 request.is_main_frame = true; |
143 request.parent_is_main_frame = false; | 143 request.parent_is_main_frame = false; |
144 request.parent_render_frame_id = -1; | 144 request.parent_render_frame_id = -1; |
145 request.transition_type = PAGE_TRANSITION_LINK; | 145 request.transition_type = ui::PAGE_TRANSITION_LINK; |
146 request.allow_download = true; | 146 request.allow_download = true; |
147 return request; | 147 return request; |
148 } | 148 } |
149 | 149 |
150 // Spin up the message loop to kick off the request. | 150 // Spin up the message loop to kick off the request. |
151 static void KickOffRequest() { | 151 static void KickOffRequest() { |
152 base::MessageLoop::current()->RunUntilIdle(); | 152 base::MessageLoop::current()->RunUntilIdle(); |
153 } | 153 } |
154 | 154 |
155 // We may want to move this to a shared space if it is useful for something else | 155 // We may want to move this to a shared space if it is useful for something else |
(...skipping 2763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2919 } else { | 2919 } else { |
2920 return new net::URLRequestTestJob( | 2920 return new net::URLRequestTestJob( |
2921 request, network_delegate, | 2921 request, network_delegate, |
2922 test_fixture_->response_headers_, test_fixture_->response_data_, | 2922 test_fixture_->response_headers_, test_fixture_->response_data_, |
2923 false); | 2923 false); |
2924 } | 2924 } |
2925 } | 2925 } |
2926 } | 2926 } |
2927 | 2927 |
2928 } // namespace content | 2928 } // namespace content |
OLD | NEW |