OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/resource_dispatcher_host.h" | 5 #include "content/browser/renderer_host/resource_dispatcher_host.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/file_path.h" | 9 #include "base/file_path.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 request.url = url; | 73 request.url = url; |
74 request.first_party_for_cookies = url; // bypass third-party cookie blocking | 74 request.first_party_for_cookies = url; // bypass third-party cookie blocking |
75 request.load_flags = 0; | 75 request.load_flags = 0; |
76 request.origin_pid = 0; | 76 request.origin_pid = 0; |
77 request.resource_type = type; | 77 request.resource_type = type; |
78 request.request_context = 0; | 78 request.request_context = 0; |
79 request.appcache_host_id = appcache::kNoHostId; | 79 request.appcache_host_id = appcache::kNoHostId; |
80 request.download_to_file = false; | 80 request.download_to_file = false; |
81 request.is_main_frame = true; | 81 request.is_main_frame = true; |
82 request.frame_id = 0; | 82 request.frame_id = 0; |
| 83 request.transition_type = PageTransition::LINK; |
83 return request; | 84 return request; |
84 } | 85 } |
85 | 86 |
86 // Spin up the message loop to kick off the request. | 87 // Spin up the message loop to kick off the request. |
87 static void KickOffRequest() { | 88 static void KickOffRequest() { |
88 MessageLoop::current()->RunAllPending(); | 89 MessageLoop::current()->RunAllPending(); |
89 } | 90 } |
90 | 91 |
91 // We may want to move this to a shared space if it is useful for something else | 92 // We may want to move this to a shared space if it is useful for something else |
92 class ResourceIPCAccumulator { | 93 class ResourceIPCAccumulator { |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1243 const net::URLRequestStatus& status, | 1244 const net::URLRequestStatus& status, |
1244 const std::string& info) { | 1245 const std::string& info) { |
1245 return true; | 1246 return true; |
1246 } | 1247 } |
1247 | 1248 |
1248 void OnRequestClosed() {} | 1249 void OnRequestClosed() {} |
1249 | 1250 |
1250 private: | 1251 private: |
1251 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); | 1252 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); |
1252 }; | 1253 }; |
OLD | NEW |