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

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

Issue 184873004: Update resource requests to remove redundant frame ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update comments Created 6 years, 9 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 | Annotate | Revision Log
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/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 request.url = url; 104 request.url = url;
105 request.first_party_for_cookies = url; // bypass third-party cookie blocking 105 request.first_party_for_cookies = url; // bypass third-party cookie blocking
106 request.referrer_policy = blink::WebReferrerPolicyDefault; 106 request.referrer_policy = blink::WebReferrerPolicyDefault;
107 request.load_flags = 0; 107 request.load_flags = 0;
108 request.origin_pid = 0; 108 request.origin_pid = 0;
109 request.resource_type = type; 109 request.resource_type = type;
110 request.request_context = 0; 110 request.request_context = 0;
111 request.appcache_host_id = appcache::kNoHostId; 111 request.appcache_host_id = appcache::kNoHostId;
112 request.download_to_file = false; 112 request.download_to_file = false;
113 request.is_main_frame = true; 113 request.is_main_frame = true;
114 request.frame_id = 0;
115 request.parent_is_main_frame = false; 114 request.parent_is_main_frame = false;
116 request.parent_frame_id = -1; 115 request.parent_render_frame_id = -1;
117 request.transition_type = PAGE_TRANSITION_LINK; 116 request.transition_type = PAGE_TRANSITION_LINK;
118 request.allow_download = true; 117 request.allow_download = true;
119 return request; 118 return request;
120 } 119 }
121 120
122 // Spin up the message loop to kick off the request. 121 // Spin up the message loop to kick off the request.
123 static void KickOffRequest() { 122 static void KickOffRequest() {
124 base::MessageLoop::current()->RunUntilIdle(); 123 base::MessageLoop::current()->RunUntilIdle();
125 } 124 }
126 125
(...skipping 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after
2707 } 2706 }
2708 2707
2709 base::MessageLoop::current()->RunUntilIdle(); 2708 base::MessageLoop::current()->RunUntilIdle();
2710 2709
2711 msgs.clear(); 2710 msgs.clear();
2712 accum_.GetClassifiedMessages(&msgs); 2711 accum_.GetClassifiedMessages(&msgs);
2713 } 2712 }
2714 } 2713 }
2715 2714
2716 } // namespace content 2715 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.cc ('k') | content/browser/loader/resource_request_info_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698