OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/async_revalidation_manager.h" | 5 #include "content/browser/loader/async_revalidation_manager.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 class BlackholeFilter : public ResourceMessageFilter { | 204 class BlackholeFilter : public ResourceMessageFilter { |
205 public: | 205 public: |
206 explicit BlackholeFilter(ResourceContext* resource_context) | 206 explicit BlackholeFilter(ResourceContext* resource_context) |
207 : ResourceMessageFilter( | 207 : ResourceMessageFilter( |
208 ChildProcessHostImpl::GenerateChildProcessUniqueId(), | 208 ChildProcessHostImpl::GenerateChildProcessUniqueId(), |
209 PROCESS_TYPE_RENDERER, | 209 PROCESS_TYPE_RENDERER, |
210 nullptr, | 210 nullptr, |
211 nullptr, | 211 nullptr, |
212 nullptr, | 212 nullptr, |
213 nullptr, | 213 nullptr, |
214 nullptr, | |
215 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))), | 214 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))), |
216 resource_context_(resource_context) { | 215 resource_context_(resource_context) { |
217 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id()); | 216 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id()); |
218 } | 217 } |
219 | 218 |
220 bool Send(IPC::Message* msg) override { | 219 bool Send(IPC::Message* msg) override { |
221 std::unique_ptr<IPC::Message> take_ownership(msg); | 220 std::unique_ptr<IPC::Message> take_ownership(msg); |
222 ReleaseHandlesInMessage(*msg); | 221 ReleaseHandlesInMessage(*msg); |
223 return true; | 222 return true; |
224 } | 223 } |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 // already completed. | 546 // already completed. |
548 EXPECT_TRUE(NextRequestWasDestroyed()); | 547 EXPECT_TRUE(NextRequestWasDestroyed()); |
549 | 548 |
550 // But no others. | 549 // But no others. |
551 EXPECT_TRUE(IsEmpty()); | 550 EXPECT_TRUE(IsEmpty()); |
552 } | 551 } |
553 | 552 |
554 } // namespace | 553 } // namespace |
555 | 554 |
556 } // namespace content | 555 } // namespace content |
OLD | NEW |