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

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

Issue 10980010: Cleanup the IPC param traits structure (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 2 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) 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/async_resource_handler.h" 5 #include "content/browser/renderer_host/async_resource_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 11 matching lines...) Expand all
22 #include "content/browser/renderer_host/resource_request_info_impl.h" 22 #include "content/browser/renderer_host/resource_request_info_impl.h"
23 #include "content/browser/resource_context_impl.h" 23 #include "content/browser/resource_context_impl.h"
24 #include "content/common/resource_messages.h" 24 #include "content/common/resource_messages.h"
25 #include "content/common/view_messages.h" 25 #include "content/common/view_messages.h"
26 #include "content/public/browser/global_request_id.h" 26 #include "content/public/browser/global_request_id.h"
27 #include "content/public/browser/resource_dispatcher_host_delegate.h" 27 #include "content/public/browser/resource_dispatcher_host_delegate.h"
28 #include "content/public/common/resource_response.h" 28 #include "content/public/common/resource_response.h"
29 #include "net/base/io_buffer.h" 29 #include "net/base/io_buffer.h"
30 #include "net/base/load_flags.h" 30 #include "net/base/load_flags.h"
31 #include "net/base/net_log.h" 31 #include "net/base/net_log.h"
32 #include "net/base/net_util.h"
32 #include "webkit/glue/resource_loader_bridge.h" 33 #include "webkit/glue/resource_loader_bridge.h"
33 34
34 using base::TimeTicks; 35 using base::TimeTicks;
35 36
36 namespace content { 37 namespace content {
37 namespace { 38 namespace {
38 39
39 static int kBufferSize = 1024 * 512; 40 static int kBufferSize = 1024 * 512;
40 static int kMinAllocationSize = 1024 * 4; 41 static int kMinAllocationSize = 1024 * 4;
41 static int kMaxAllocationSize = 1024 * 32; 42 static int kMaxAllocationSize = 1024 * 32;
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 336 }
336 337
337 void AsyncResourceHandler::ResumeIfDeferred() { 338 void AsyncResourceHandler::ResumeIfDeferred() {
338 if (did_defer_) { 339 if (did_defer_) {
339 did_defer_ = false; 340 did_defer_ = false;
340 controller()->Resume(); 341 controller()->Resume();
341 } 342 }
342 } 343 }
343 344
344 } // namespace content 345 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698