| OLD | NEW |
| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 request_info.url = GURL(test_page_url); | 166 request_info.url = GURL(test_page_url); |
| 167 request_info.first_party_for_cookies = GURL(test_page_url); | 167 request_info.first_party_for_cookies = GURL(test_page_url); |
| 168 request_info.referrer = GURL(); | 168 request_info.referrer = GURL(); |
| 169 request_info.headers = std::string(); | 169 request_info.headers = std::string(); |
| 170 request_info.load_flags = 0; | 170 request_info.load_flags = 0; |
| 171 request_info.requestor_pid = 0; | 171 request_info.requestor_pid = 0; |
| 172 request_info.request_type = ResourceType::SUB_RESOURCE; | 172 request_info.request_type = ResourceType::SUB_RESOURCE; |
| 173 request_info.appcache_host_id = appcache::kNoHostId; | 173 request_info.appcache_host_id = appcache::kNoHostId; |
| 174 request_info.routing_id = 0; | 174 request_info.routing_id = 0; |
| 175 RequestExtraData extra_data(WebKit::WebReferrerPolicyDefault, | 175 RequestExtraData extra_data(WebKit::WebReferrerPolicyDefault, |
| 176 WebKit::WebString(), |
| 176 true, 0, false, -1, true, | 177 true, 0, false, -1, true, |
| 177 PAGE_TRANSITION_LINK, -1, -1); | 178 PAGE_TRANSITION_LINK, -1, -1); |
| 178 request_info.extra_data = &extra_data; | 179 request_info.extra_data = &extra_data; |
| 179 | 180 |
| 180 return dispatcher_->CreateBridge(request_info); | 181 return dispatcher_->CreateBridge(request_info); |
| 181 } | 182 } |
| 182 | 183 |
| 183 std::vector<IPC::Message> message_queue_; | 184 std::vector<IPC::Message> message_queue_; |
| 184 static scoped_ptr<ResourceDispatcher> dispatcher_; | 185 static scoped_ptr<ResourceDispatcher> dispatcher_; |
| 185 }; | 186 }; |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 337 |
| 337 bridge->Start(this); | 338 bridge->Start(this); |
| 338 InitMessages(); | 339 InitMessages(); |
| 339 | 340 |
| 340 // Dispatch deferred messages. | 341 // Dispatch deferred messages. |
| 341 message_loop.RunAllPending(); | 342 message_loop.RunAllPending(); |
| 342 delete bridge; | 343 delete bridge; |
| 343 } | 344 } |
| 344 | 345 |
| 345 } // namespace content | 346 } // namespace content |
| OLD | NEW |