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

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: comments #47 Created 4 years, 12 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 <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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698