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

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

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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 #ifndef CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_
6 #define CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/renderer_host/resource_handler.h" 11 #include "chrome/browser/renderer_host/resource_handler.h"
12 12
13 class ResourceDispatcherHost; 13 class ResourceDispatcherHost;
14 class ResourceMessageFilter; 14 class ResourceMessageFilter;
15 class SharedIOBuffer; 15 class SharedIOBuffer;
16 16
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // |next_buffer_size_| is the size of the buffer to be allocated on the next 51 // |next_buffer_size_| is the size of the buffer to be allocated on the next
52 // OnWillRead() call. We exponentially grow the size of the buffer allocated 52 // OnWillRead() call. We exponentially grow the size of the buffer allocated
53 // when our owner fills our buffers. On the first OnWillRead() call, we 53 // when our owner fills our buffers. On the first OnWillRead() call, we
54 // allocate a buffer of 32k and double it in OnReadCompleted() if the buffer 54 // allocate a buffer of 32k and double it in OnReadCompleted() if the buffer
55 // was filled, up to a maximum size of 512k. 55 // was filled, up to a maximum size of 512k.
56 int next_buffer_size_; 56 int next_buffer_size_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); 58 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler);
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_ 61 #endif // CONTENT_BROWSER_RENDERER_HOST_ASYNC_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698