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

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

Issue 2020633003: Revert of Add FrameHost mojo service (patchset #23 id:490001 of https://codereview.chromium.org/196… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
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,
214 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))), 215 base::Bind(&BlackholeFilter::GetContexts, base::Unretained(this))),
215 resource_context_(resource_context) { 216 resource_context_(resource_context) {
216 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id()); 217 ChildProcessSecurityPolicyImpl::GetInstance()->Add(child_id());
217 } 218 }
218 219
219 bool Send(IPC::Message* msg) override { 220 bool Send(IPC::Message* msg) override {
220 std::unique_ptr<IPC::Message> take_ownership(msg); 221 std::unique_ptr<IPC::Message> take_ownership(msg);
221 ReleaseHandlesInMessage(*msg); 222 ReleaseHandlesInMessage(*msg);
222 return true; 223 return true;
223 } 224 }
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 // already completed. 547 // already completed.
547 EXPECT_TRUE(NextRequestWasDestroyed()); 548 EXPECT_TRUE(NextRequestWasDestroyed());
548 549
549 // But no others. 550 // But no others.
550 EXPECT_TRUE(IsEmpty()); 551 EXPECT_TRUE(IsEmpty());
551 } 552 }
552 553
553 } // namespace 554 } // namespace
554 555
555 } // namespace content 556 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/async_resource_handler.cc ('k') | content/browser/loader/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698