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

Side by Side Diff: content/browser/renderer_host/resource_queue.cc

Issue 9348109: Add extra data to BrowserContext so that content layer and other embedders can stash data with it t… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months 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 | Annotate | Revision Log
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/renderer_host/resource_dispatcher_host_request_info.h" 8 #include "content/browser/renderer_host/resource_dispatcher_host_request_info.h"
9 #include "content/public/browser/browser_thread.h" 9 #include "content/public/browser/browser_thread.h"
10 #include "content/public/browser/global_request_id.h" 10 #include "content/public/browser/global_request_id.h"
11 #include "net/url_request/url_request.h"
11 12
12 using content::BrowserThread; 13 using content::BrowserThread;
13 using content::GlobalRequestID; 14 using content::GlobalRequestID;
14 15
15 ResourceQueueDelegate::~ResourceQueueDelegate() { 16 ResourceQueueDelegate::~ResourceQueueDelegate() {
16 } 17 }
17 18
18 ResourceQueue::ResourceQueue() : shutdown_(false) { 19 ResourceQueue::ResourceQueue() : shutdown_(false) {
19 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 20 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
20 } 21 }
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // If no more delegates want a delay, start the request. 95 // If no more delegates want a delay, start the request.
95 if (interested_delegates_[request_id].empty()) { 96 if (interested_delegates_[request_id].empty()) {
96 interested_delegates_.erase(request_id); 97 interested_delegates_.erase(request_id);
97 net::URLRequest* request = i->second; 98 net::URLRequest* request = i->second;
98 // The request shouldn't have started (SUCCESS is the initial state). 99 // The request shouldn't have started (SUCCESS is the initial state).
99 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status()); 100 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status());
100 request->Start(); 101 request->Start();
101 } 102 }
102 } 103 }
103 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698