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

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

Issue 6166010: net: Remove typedef net::URLRequestStatus URLRequestStatus; (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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) 2009 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 "chrome/browser/renderer_host/resource_queue.h" 5 #include "chrome/browser/renderer_host/resource_queue.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "chrome/browser/browser_thread.h" 8 #include "chrome/browser/browser_thread.h"
9 #include "chrome/browser/renderer_host/global_request_id.h" 9 #include "chrome/browser/renderer_host/global_request_id.h"
10 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h" 10 #include "chrome/browser/renderer_host/resource_dispatcher_host_request_info.h"
11 11
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 DCHECK(ContainsKey(interested_delegates_, request_id)); 80 DCHECK(ContainsKey(interested_delegates_, request_id));
81 DCHECK(ContainsKey(interested_delegates_[request_id], delegate)); 81 DCHECK(ContainsKey(interested_delegates_[request_id], delegate));
82 interested_delegates_[request_id].erase(delegate); 82 interested_delegates_[request_id].erase(delegate);
83 if (interested_delegates_[request_id].empty()) { 83 if (interested_delegates_[request_id].empty()) {
84 interested_delegates_.erase(request_id); 84 interested_delegates_.erase(request_id);
85 85
86 if (ContainsKey(requests_, request_id)) { 86 if (ContainsKey(requests_, request_id)) {
87 net::URLRequest* request = requests_[request_id]; 87 net::URLRequest* request = requests_[request_id];
88 // The request shouldn't have started (SUCCESS is the initial state). 88 // The request shouldn't have started (SUCCESS is the initial state).
89 DCHECK_EQ(URLRequestStatus::SUCCESS, request->status().status()); 89 DCHECK_EQ(net::URLRequestStatus::SUCCESS, request->status().status());
90 request->Start(); 90 request->Start();
91 } 91 }
92 } 92 }
93 } 93 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698