Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_unittest.cc

Issue 1413543005: Use FrameTreeNode ID as frameId in extension APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Improve port lifetime management, add tests Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698