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/renderer_host/resource_queue.cc

Issue 8340028: Salient parts of http://codereview.chromium.org/8392042/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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) 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.h" 7 #include "base/stl_util.h"
8 #include "content/browser/browser_thread.h"
9 #include "content/browser/renderer_host/global_request_id.h" 8 #include "content/browser/renderer_host/global_request_id.h"
10 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h" 9 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
10 #include "content/public/browser/browser_thread.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 }
18 18
19 ResourceQueue::~ResourceQueue() { 19 ResourceQueue::~ResourceQueue() {
20 DCHECK(shutdown_); 20 DCHECK(shutdown_);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // If no more delegates want a delay, start the request. 91 // If no more delegates want a delay, start the request.
92 if (interested_delegates_[request_id].empty()) { 92 if (interested_delegates_[request_id].empty()) {
93 interested_delegates_.erase(request_id); 93 interested_delegates_.erase(request_id);
94 net::URLRequest* request = i->second; 94 net::URLRequest* request = i->second;
95 // The request shouldn't have started (SUCCESS is the initial state). 95 // The request shouldn't have started (SUCCESS is the initial state).
96 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status()); 96 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status());
97 request->Start(); 97 request->Start();
98 } 98 }
99 } 99 }
100 } 100 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_message_filter.cc ('k') | content/browser/renderer_host/resource_queue_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698