| 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 "content/browser/loader/resource_scheduler.h" | 5 #include "content/browser/loader/resource_scheduler.h" |
| 6 | 6 |
| 7 #include <string> |
| 8 |
| 7 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 8 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 10 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/timer/mock_timer.h" | 13 #include "base/timer/mock_timer.h" |
| 12 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 13 #include "content/browser/browser_thread_impl.h" | 15 #include "content/browser/browser_thread_impl.h" |
| 14 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 16 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 15 #include "content/browser/loader/resource_message_filter.h" | 17 #include "content/browser/loader/resource_message_filter.h" |
| 16 #include "content/browser/loader/resource_request_info_impl.h" | 18 #include "content/browser/loader/resource_request_info_impl.h" |
| 17 #include "content/common/resource_messages.h" | 19 #include "content/common/resource_messages.h" |
| 18 #include "content/public/browser/resource_context.h" | 20 #include "content/public/browser/resource_context.h" |
| 19 #include "content/public/browser/resource_controller.h" | 21 #include "content/public/browser/resource_controller.h" |
| 20 #include "content/public/browser/resource_throttle.h" | 22 #include "content/public/browser/resource_throttle.h" |
| 21 #include "content/public/common/process_type.h" | 23 #include "content/public/common/process_type.h" |
| 22 #include "content/public/common/resource_type.h" | 24 #include "content/public/common/resource_type.h" |
| 23 #include "content/public/test/mock_render_process_host.h" | 25 #include "content/public/test/mock_render_process_host.h" |
| 24 #include "content/public/test/test_browser_context.h" | 26 #include "content/public/test/test_browser_context.h" |
| 25 #include "content/test/test_render_view_host_factory.h" | 27 #include "content/test/test_render_view_host_factory.h" |
| 26 #include "content/test/test_web_contents.h" | 28 #include "content/test/test_web_contents.h" |
| 27 #include "net/base/host_port_pair.h" | 29 #include "net/base/host_port_pair.h" |
| 28 #include "net/base/request_priority.h" | 30 #include "net/base/request_priority.h" |
| 29 #include "net/http/http_server_properties_impl.h" | 31 #include "net/http/http_server_properties_impl.h" |
| 30 #include "net/url_request/url_request.h" | 32 #include "net/url_request/url_request.h" |
| 31 #include "net/url_request/url_request_test_util.h" | 33 #include "net/url_request/url_request_test_util.h" |
| 32 #include "testing/gtest/include/gtest/gtest.h" | 34 #include "testing/gtest/include/gtest/gtest.h" |
| 33 #include "ui/events/latency_info.h" | 35 #include "ui/events/latency_info.h" |
| 34 | 36 |
| 37 using std::string; |
| 38 |
| 35 namespace content { | 39 namespace content { |
| 36 | 40 |
| 37 namespace { | 41 namespace { |
| 38 | 42 |
| 39 class TestRequestFactory; | 43 class TestRequestFactory; |
| 40 | 44 |
| 41 const int kChildId = 30; | 45 const int kChildId = 30; |
| 42 const int kRouteId = 75; | 46 const int kRouteId = 75; |
| 43 const int kChildId2 = 43; | 47 const int kChildId2 = 43; |
| 44 const int kRouteId2 = 67; | 48 const int kRouteId2 = 67; |
| (...skipping 2160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2205 web_contents_2.reset(); | 2209 web_contents_2.reset(); |
| 2206 base::RunLoop().RunUntilIdle(); | 2210 base::RunLoop().RunUntilIdle(); |
| 2207 | 2211 |
| 2208 browser_context.reset(); | 2212 browser_context.reset(); |
| 2209 render_process_host_factory.reset(); | 2213 render_process_host_factory.reset(); |
| 2210 } | 2214 } |
| 2211 | 2215 |
| 2212 } // unnamed namespace | 2216 } // unnamed namespace |
| 2213 | 2217 |
| 2214 } // namespace content | 2218 } // namespace content |
| OLD | NEW |