Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(583)

Side by Side Diff: content/browser/loader/async_revalidation_manager_unittest.cc

Issue 1964273002: Add FrameHost mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbind Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 class BlackholeFilter : public ResourceMessageFilter { 203 class BlackholeFilter : public ResourceMessageFilter {
204 public: 204 public:
205 explicit BlackholeFilter(ResourceContext* resource_context) 205 explicit BlackholeFilter(ResourceContext* resource_context)
206 : ResourceMessageFilter( 206 : ResourceMessageFilter(
207 ChildProcessHostImpl::GenerateChildProcessUniqueId(), 207 ChildProcessHostImpl::GenerateChildProcessUniqueId(),
208 PROCESS_TYPE_RENDERER, 208 PROCESS_TYPE_RENDERER,
209 nullptr, 209 nullptr,
210 nullptr, 210 nullptr,
211 nullptr, 211 nullptr,
212 nullptr, 212 nullptr,
213 nullptr,
214 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))), 213 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))),
215 resource_context_(resource_context) { 214 resource_context_(resource_context) {
216 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id()); 215 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id());
217 } 216 }
218 217
219 bool Send(IPC::Message* msg) override { 218 bool Send(IPC::Message* msg) override {
220 std::unique_ptr<IPC::Message> take_ownership(msg); 219 std::unique_ptr<IPC::Message> take_ownership(msg);
221 ReleaseHandlesInMessage(*msg); 220 ReleaseHandlesInMessage(*msg);
222 return true; 221 return true;
223 } 222 }
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // already completed. 545 // already completed.
547 EXPECT_TRUE(NextRequestWasDestroyed()); 546 EXPECT_TRUE(NextRequestWasDestroyed());
548 547
549 // But no others. 548 // But no others.
550 EXPECT_TRUE(IsEmpty()); 549 EXPECT_TRUE(IsEmpty());
551 } 550 }
552 551
553 } // namespace 552 } // namespace
554 553
555 } // namespace content 554 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698