| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 EXPECT_TRUE(URLRequestTestDelayedStartJob::DelayedStartQueueEmpty()); | 291 EXPECT_TRUE(URLRequestTestDelayedStartJob::DelayedStartQueueEmpty()); |
| 292 URLRequestTestDelayedStartJob::ClearQueue(); | 292 URLRequestTestDelayedStartJob::ClearQueue(); |
| 293 | 293 |
| 294 DCHECK(test_fixture_ == this); | 294 DCHECK(test_fixture_ == this); |
| 295 test_fixture_ = NULL; | 295 test_fixture_ = NULL; |
| 296 | 296 |
| 297 host_.Shutdown(); | 297 host_.Shutdown(); |
| 298 | 298 |
| 299 ChildProcessSecurityPolicy::GetInstance()->Remove(0); | 299 ChildProcessSecurityPolicy::GetInstance()->Remove(0); |
| 300 | 300 |
| 301 // Flush the message loop to make Purify happy. | 301 // Flush the message loop to make application verifiers happy. |
| 302 message_loop_.RunAllPending(); | 302 message_loop_.RunAllPending(); |
| 303 } | 303 } |
| 304 | 304 |
| 305 // Creates a request using the current test object as the filter. | 305 // Creates a request using the current test object as the filter. |
| 306 void MakeTestRequest(int render_view_id, | 306 void MakeTestRequest(int render_view_id, |
| 307 int request_id, | 307 int request_id, |
| 308 const GURL& url); | 308 const GURL& url); |
| 309 | 309 |
| 310 // Generates a request using the given filter. This will probably be a | 310 // Generates a request using the given filter. This will probably be a |
| 311 // ForwardingFilter. | 311 // ForwardingFilter. |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1243 const net::URLRequestStatus& status, | 1243 const net::URLRequestStatus& status, |
| 1244 const std::string& info) { | 1244 const std::string& info) { |
| 1245 return true; | 1245 return true; |
| 1246 } | 1246 } |
| 1247 | 1247 |
| 1248 void OnRequestClosed() {} | 1248 void OnRequestClosed() {} |
| 1249 | 1249 |
| 1250 private: | 1250 private: |
| 1251 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); | 1251 DISALLOW_COPY_AND_ASSIGN(DummyResourceHandler); |
| 1252 }; | 1252 }; |
| OLD | NEW |