OLD | NEW |
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_BUFFERED_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_BUFFERED_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 "content/browser/renderer_host/resource_handler.h" |
12 | 12 |
13 class MessageLoop; | 13 class MessageLoop; |
14 class ResourceDispatcherHost; | 14 class ResourceDispatcherHost; |
15 | 15 |
16 namespace net { | 16 namespace net { |
17 class URLRequest; | 17 class URLRequest; |
18 } // namespace net | 18 } // namespace net |
19 | 19 |
20 // Used to buffer a request until enough data has been received. | 20 // Used to buffer a request until enough data has been received. |
21 class BufferedResourceHandler : public ResourceHandler { | 21 class BufferedResourceHandler : public ResourceHandler { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 int bytes_read_; | 89 int bytes_read_; |
90 bool sniff_content_; | 90 bool sniff_content_; |
91 bool should_buffer_; | 91 bool should_buffer_; |
92 bool wait_for_plugins_; | 92 bool wait_for_plugins_; |
93 bool buffering_; | 93 bool buffering_; |
94 bool finished_; | 94 bool finished_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); | 96 DISALLOW_COPY_AND_ASSIGN(BufferedResourceHandler); |
97 }; | 97 }; |
98 | 98 |
99 #endif // CHROME_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ | 99 #endif // CONTENT_BROWSER_RENDERER_HOST_BUFFERED_RESOURCE_HANDLER_H_ |
OLD | NEW |