OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer_host/resource_queue.h" | 5 #include "content/browser/renderer_host/resource_queue.h" |
6 | 6 |
7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util.h" |
8 #include "content/browser/browser_thread.h" | 8 #include "content/browser/browser_thread.h" |
9 #include "content/browser/renderer_host/global_request_id.h" | 9 #include "content/browser/renderer_host/global_request_id.h" |
10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" | 10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" |
11 | 11 |
12 ResourceQueueDelegate::~ResourceQueueDelegate() { | 12 ResourceQueueDelegate::~ResourceQueueDelegate() { |
13 } | 13 } |
14 | 14 |
15 ResourceQueue::ResourceQueue() : shutdown_(false) { | 15 ResourceQueue::ResourceQueue() : shutdown_(false) { |
16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 16 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
17 } | 17 } |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 interested_delegates_.erase(request_id); | 87 interested_delegates_.erase(request_id); |
88 | 88 |
89 if (ContainsKey(requests_, request_id)) { | 89 if (ContainsKey(requests_, request_id)) { |
90 net::URLRequest* request = requests_[request_id]; | 90 net::URLRequest* request = requests_[request_id]; |
91 // The request shouldn't have started (SUCCESS is the initial state). | 91 // The request shouldn't have started (SUCCESS is the initial state). |
92 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status()); | 92 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status()); |
93 request->Start(); | 93 request->Start(); |
94 } | 94 } |
95 } | 95 } |
96 } | 96 } |
OLD | NEW |