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