| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |