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

Side by Side Diff: content/common/resource_dispatcher_unittest.cc

Issue 10795071: Merge 147060 to 1180 (M21) - PPAPI (Flash): Properly honor Pepper url requests with custom user age… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « content/common/request_extra_data.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/process.h" 10 #include "base/process.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 request_info.url = GURL(test_page_url); 165 request_info.url = GURL(test_page_url);
166 request_info.first_party_for_cookies = GURL(test_page_url); 166 request_info.first_party_for_cookies = GURL(test_page_url);
167 request_info.referrer = GURL(); 167 request_info.referrer = GURL();
168 request_info.headers = std::string(); 168 request_info.headers = std::string();
169 request_info.load_flags = 0; 169 request_info.load_flags = 0;
170 request_info.requestor_pid = 0; 170 request_info.requestor_pid = 0;
171 request_info.request_type = ResourceType::SUB_RESOURCE; 171 request_info.request_type = ResourceType::SUB_RESOURCE;
172 request_info.appcache_host_id = appcache::kNoHostId; 172 request_info.appcache_host_id = appcache::kNoHostId;
173 request_info.routing_id = 0; 173 request_info.routing_id = 0;
174 RequestExtraData extra_data(WebKit::WebReferrerPolicyDefault, 174 RequestExtraData extra_data(WebKit::WebReferrerPolicyDefault,
175 WebKit::WebString(),
175 true, 0, false, -1, true, 176 true, 0, false, -1, true,
176 content::PAGE_TRANSITION_LINK, -1, -1); 177 content::PAGE_TRANSITION_LINK, -1, -1);
177 request_info.extra_data = &extra_data; 178 request_info.extra_data = &extra_data;
178 179
179 return dispatcher_->CreateBridge(request_info); 180 return dispatcher_->CreateBridge(request_info);
180 } 181 }
181 182
182 std::vector<IPC::Message> message_queue_; 183 std::vector<IPC::Message> message_queue_;
183 static scoped_ptr<ResourceDispatcher> dispatcher_; 184 static scoped_ptr<ResourceDispatcher> dispatcher_;
184 }; 185 };
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 334
334 ResourceLoaderBridge* bridge = CreateBridge(); 335 ResourceLoaderBridge* bridge = CreateBridge();
335 336
336 bridge->Start(this); 337 bridge->Start(this);
337 InitMessages(); 338 InitMessages();
338 339
339 // Dispatch deferred messages. 340 // Dispatch deferred messages.
340 message_loop.RunAllPending(); 341 message_loop.RunAllPending();
341 delete bridge; 342 delete bridge;
342 } 343 }
OLDNEW
« no previous file with comments | « content/common/request_extra_data.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698