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 "net/url_request/url_request_test_job.h" | 5 #include "net/url_request/url_request_test_job.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/lazy_instance.h" | 12 #include "base/lazy_instance.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/memory/ptr_util.h" | 14 #include "base/memory/ptr_util.h" |
15 #include "base/single_thread_task_runner.h" | 15 #include "base/single_thread_task_runner.h" |
16 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
19 #include "net/base/net_errors.h" | 19 #include "net/base/net_errors.h" |
20 #include "net/http/http_response_headers.h" | 20 #include "net/http/http_response_headers.h" |
21 #include "net/http/http_util.h" | 21 #include "net/http/http_util.h" |
22 | 22 |
23 namespace net { | 23 namespace net { |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
27 typedef std::list<URLRequestTestJob*> URLRequestJobList; | 27 typedef std::list<URLRequestTestJob*> URLRequestJobList; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 | 346 |
347 URLRequestTestJob* next_job(g_pending_jobs.Get().front()); | 347 URLRequestTestJob* next_job(g_pending_jobs.Get().front()); |
348 g_pending_jobs.Get().pop_front(); | 348 g_pending_jobs.Get().pop_front(); |
349 | 349 |
350 DCHECK(!next_job->auto_advance()); // auto_advance jobs should be in this q | 350 DCHECK(!next_job->auto_advance()); // auto_advance jobs should be in this q |
351 next_job->ProcessNextOperation(); | 351 next_job->ProcessNextOperation(); |
352 return true; | 352 return true; |
353 } | 353 } |
354 | 354 |
355 } // namespace net | 355 } // namespace net |
OLD | NEW |