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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 request.referrer_policy = blink::WebReferrerPolicyDefault; | 145 request.referrer_policy = blink::WebReferrerPolicyDefault; |
146 request.load_flags = 0; | 146 request.load_flags = 0; |
147 request.origin_pid = 0; | 147 request.origin_pid = 0; |
148 request.resource_type = type; | 148 request.resource_type = type; |
149 request.request_context = 0; | 149 request.request_context = 0; |
150 request.appcache_host_id = kAppCacheNoHostId; | 150 request.appcache_host_id = kAppCacheNoHostId; |
151 request.download_to_file = false; | 151 request.download_to_file = false; |
152 request.should_reset_appcache = false; | 152 request.should_reset_appcache = false; |
153 request.is_main_frame = true; | 153 request.is_main_frame = true; |
154 request.parent_is_main_frame = false; | 154 request.parent_is_main_frame = false; |
155 request.parent_render_frame_id = -1; | |
156 request.transition_type = ui::PAGE_TRANSITION_LINK; | 155 request.transition_type = ui::PAGE_TRANSITION_LINK; |
157 request.allow_download = true; | 156 request.allow_download = true; |
158 return request; | 157 return request; |
159 } | 158 } |
160 | 159 |
161 // Spin up the message loop to kick off the request. | 160 // Spin up the message loop to kick off the request. |
162 static void KickOffRequest() { | 161 static void KickOffRequest() { |
163 base::MessageLoop::current()->RunUntilIdle(); | 162 base::MessageLoop::current()->RunUntilIdle(); |
164 } | 163 } |
165 | 164 |
(...skipping 3375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3541 return nullptr; | 3540 return nullptr; |
3542 } | 3541 } |
3543 | 3542 |
3544 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse( | 3543 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse( |
3545 net::URLRequest* request, | 3544 net::URLRequest* request, |
3546 net::NetworkDelegate* network_delegate) const { | 3545 net::NetworkDelegate* network_delegate) const { |
3547 return nullptr; | 3546 return nullptr; |
3548 } | 3547 } |
3549 | 3548 |
3550 } // namespace content | 3549 } // namespace content |
OLD | NEW |