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

Side by Side Diff: content/browser/loader/throttling_resource_handler.cc

Issue 11414299: Add content/browser/loader/ for resource loading related classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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) 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 "content/browser/renderer_host/throttling_resource_handler.h" 5 #include "content/browser/loader/throttling_resource_handler.h"
6 6
7 #include "content/public/browser/resource_throttle.h" 7 #include "content/public/browser/resource_throttle.h"
8 #include "content/public/common/resource_response.h" 8 #include "content/public/common/resource_response.h"
9 9
10 namespace content { 10 namespace content {
11 11
12 ThrottlingResourceHandler::ThrottlingResourceHandler( 12 ThrottlingResourceHandler::ThrottlingResourceHandler(
13 scoped_ptr<ResourceHandler> next_handler, 13 scoped_ptr<ResourceHandler> next_handler,
14 int child_id, 14 int child_id,
15 int request_id, 15 int request_id,
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 bool defer = false; 176 bool defer = false;
177 if (!OnResponseStarted(request_id_, response, &defer)) { 177 if (!OnResponseStarted(request_id_, response, &defer)) {
178 controller()->Cancel(); 178 controller()->Cancel();
179 } else if (!defer) { 179 } else if (!defer) {
180 controller()->Resume(); 180 controller()->Resume();
181 } 181 }
182 } 182 }
183 183
184 } // namespace content 184 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/throttling_resource_handler.h ('k') | content/browser/loader/transfer_navigation_resource_throttle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698