| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mojo_async_resource_handler.h" | 5 #include "content/browser/loader/mojo_async_resource_handler.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void RequestBeginning(net::URLRequest* request, | 75 void RequestBeginning(net::URLRequest* request, |
| 76 ResourceContext* resource_context, | 76 ResourceContext* resource_context, |
| 77 AppCacheService* appcache_service, | 77 AppCacheService* appcache_service, |
| 78 ResourceType resource_type, | 78 ResourceType resource_type, |
| 79 ScopedVector<ResourceThrottle>* throttles) override { | 79 ScopedVector<ResourceThrottle>* throttles) override { |
| 80 ADD_FAILURE() << "RequestBeginning should not be called."; | 80 ADD_FAILURE() << "RequestBeginning should not be called."; |
| 81 } | 81 } |
| 82 | 82 |
| 83 void DownloadStarting(net::URLRequest* request, | 83 void DownloadStarting(net::URLRequest* request, |
| 84 ResourceContext* resource_context, | 84 ResourceContext* resource_context, |
| 85 int child_id, | |
| 86 int route_id, | |
| 87 bool is_content_initiated, | 85 bool is_content_initiated, |
| 88 bool must_download, | 86 bool must_download, |
| 89 ScopedVector<ResourceThrottle>* throttles) override { | 87 ScopedVector<ResourceThrottle>* throttles) override { |
| 90 ADD_FAILURE() << "DownloadStarting should not be called."; | 88 ADD_FAILURE() << "DownloadStarting should not be called."; |
| 91 } | 89 } |
| 92 | 90 |
| 93 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( | 91 ResourceDispatcherHostLoginDelegate* CreateLoginDelegate( |
| 94 net::AuthChallengeInfo* auth_info, | 92 net::AuthChallengeInfo* auth_info, |
| 95 net::URLRequest* request) override { | 93 net::URLRequest* request) override { |
| 96 ADD_FAILURE() << "CreateLoginDelegate should not be called."; | 94 ADD_FAILURE() << "CreateLoginDelegate should not be called."; |
| (...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 } | 1136 } |
| 1139 } | 1137 } |
| 1140 EXPECT_EQ("B", body); | 1138 EXPECT_EQ("B", body); |
| 1141 } | 1139 } |
| 1142 | 1140 |
| 1143 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, | 1141 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, |
| 1144 MojoAsyncResourceHandlerWithAllocationSizeTest, | 1142 MojoAsyncResourceHandlerWithAllocationSizeTest, |
| 1145 ::testing::Values(8, 32 * 2014)); | 1143 ::testing::Values(8, 32 * 2014)); |
| 1146 } // namespace | 1144 } // namespace |
| 1147 } // namespace content | 1145 } // namespace content |
| OLD | NEW |