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

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

Issue 1481583002: Narrow the interface to ResourceMessageFilter::GetContexts() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clarify when |origin_pid| argument is used. Created 5 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <vector> 5 #include <vector>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 delete msg; 248 delete msg;
249 return true; 249 return true;
250 } 250 }
251 251
252 ResourceContext* resource_context() { return resource_context_; } 252 ResourceContext* resource_context() { return resource_context_; }
253 253
254 protected: 254 protected:
255 ~TestFilterSpecifyingChild() override {} 255 ~TestFilterSpecifyingChild() override {}
256 256
257 private: 257 private:
258 void GetContexts(const ResourceHostMsg_Request& request, 258 void GetContexts(ResourceType resource_type,
259 int origin_pid,
259 ResourceContext** resource_context, 260 ResourceContext** resource_context,
260 net::URLRequestContext** request_context) { 261 net::URLRequestContext** request_context) {
261 *resource_context = resource_context_; 262 *resource_context = resource_context_;
262 *request_context = resource_context_->GetRequestContext(); 263 *request_context = resource_context_->GetRequestContext();
263 } 264 }
264 265
265 ResourceContext* resource_context_; 266 ResourceContext* resource_context_;
266 bool canceled_; 267 bool canceled_;
267 int received_after_canceled_; 268 int received_after_canceled_;
268 269
(...skipping 3271 matching lines...) Expand 10 before | Expand all | Expand 10 after
3540 return nullptr; 3541 return nullptr;
3541 } 3542 }
3542 3543
3543 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse( 3544 net::URLRequestJob* TestURLRequestJobFactory::MaybeInterceptResponse(
3544 net::URLRequest* request, 3545 net::URLRequest* request,
3545 net::NetworkDelegate* network_delegate) const { 3546 net::NetworkDelegate* network_delegate) const {
3546 return nullptr; 3547 return nullptr;
3547 } 3548 }
3548 3549
3549 } // namespace content 3550 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698