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

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: . 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 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,
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
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
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