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

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

Powered by Google App Engine
This is Rietveld 408576698