| 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 "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
| 10 #include "content/browser/browser_thread_impl.h" | 10 #include "content/browser/browser_thread_impl.h" |
| 11 #include "content/browser/loader/resource_dispatcher_host_impl.h" | 11 #include "content/browser/loader/resource_dispatcher_host_impl.h" |
| 12 #include "content/browser/loader/resource_message_filter.h" | 12 #include "content/browser/loader/resource_message_filter.h" |
| 13 #include "content/browser/loader/resource_request_info_impl.h" | 13 #include "content/browser/loader/resource_request_info_impl.h" |
| 14 #include "content/common/resource_messages.h" | 14 #include "content/common/resource_messages.h" |
| 15 #include "content/public/browser/resource_context.h" | 15 #include "content/public/browser/resource_context.h" |
| 16 #include "content/public/browser/resource_controller.h" | 16 #include "content/public/browser/resource_controller.h" |
| 17 #include "content/public/browser/resource_throttle.h" | 17 #include "content/public/browser/resource_throttle.h" |
| 18 #include "content/public/common/process_type.h" | 18 #include "content/public/common/process_type.h" |
| 19 #include "content/public/common/resource_type.h" |
| 19 #include "net/base/host_port_pair.h" | 20 #include "net/base/host_port_pair.h" |
| 20 #include "net/base/request_priority.h" | 21 #include "net/base/request_priority.h" |
| 21 #include "net/http/http_server_properties_impl.h" | 22 #include "net/http/http_server_properties_impl.h" |
| 22 #include "net/url_request/url_request.h" | 23 #include "net/url_request/url_request.h" |
| 23 #include "net/url_request/url_request_test_util.h" | 24 #include "net/url_request/url_request_test_util.h" |
| 24 #include "testing/gtest/include/gtest/gtest.h" | 25 #include "testing/gtest/include/gtest/gtest.h" |
| 25 #include "webkit/common/resource_type.h" | |
| 26 | 26 |
| 27 namespace content { | 27 namespace content { |
| 28 | 28 |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 class TestRequestFactory; | 31 class TestRequestFactory; |
| 32 | 32 |
| 33 const int kChildId = 30; | 33 const int kChildId = 30; |
| 34 const int kRouteId = 75; | 34 const int kRouteId = 75; |
| 35 | 35 |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 http_server_properties_.SetSupportsSpdy( | 527 http_server_properties_.SetSupportsSpdy( |
| 528 net::HostPortPair("spdyhost2", 8080), true); | 528 net::HostPortPair("spdyhost2", 8080), true); |
| 529 ChangeRequestPriority(low2_spdy.get(), net::LOWEST); | 529 ChangeRequestPriority(low2_spdy.get(), net::LOWEST); |
| 530 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST)); | 530 scoped_ptr<TestRequest> low2(NewRequest("http://host/low", net::LOWEST)); |
| 531 EXPECT_TRUE(low2->started()); | 531 EXPECT_TRUE(low2->started()); |
| 532 } | 532 } |
| 533 | 533 |
| 534 } // unnamed namespace | 534 } // unnamed namespace |
| 535 | 535 |
| 536 } // namespace content | 536 } // namespace content |
| OLD | NEW |