| OLD | NEW |
| 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 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
| 15 #include "content/browser/loader/resource_handler.h" | 15 #include "content/browser/loader/resource_handler.h" |
| 16 #include "content/browser/loader/resource_message_delegate.h" | 16 #include "content/browser/loader/resource_message_delegate.h" |
| 17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 class URLRequest; | 22 class URLRequest; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace content { | 25 namespace content { |
| 26 class ResourceBuffer; | 26 class ResourceBuffer; |
| 27 class ResourceContext; | |
| 28 class ResourceDispatcherHostImpl; | 27 class ResourceDispatcherHostImpl; |
| 29 class ResourceMessageFilter; | |
| 30 class SharedIOBuffer; | |
| 31 | 28 |
| 32 // Used to complete an asynchronous resource request in response to resource | 29 // Used to complete an asynchronous resource request in response to resource |
| 33 // load events from the resource dispatcher host. | 30 // load events from the resource dispatcher host. |
| 34 class CONTENT_EXPORT AsyncResourceHandler : public ResourceHandler, | 31 class CONTENT_EXPORT AsyncResourceHandler : public ResourceHandler, |
| 35 public ResourceMessageDelegate { | 32 public ResourceMessageDelegate { |
| 36 public: | 33 public: |
| 37 AsyncResourceHandler(net::URLRequest* request, | 34 AsyncResourceHandler(net::URLRequest* request, |
| 38 ResourceDispatcherHostImpl* rdh); | 35 ResourceDispatcherHostImpl* rdh); |
| 39 ~AsyncResourceHandler() override; | 36 ~AsyncResourceHandler() override; |
| 40 | 37 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 96 |
| 100 int64_t reported_transfer_size_; | 97 int64_t reported_transfer_size_; |
| 101 int64_t reported_encoded_body_length_; | 98 int64_t reported_encoded_body_length_; |
| 102 | 99 |
| 103 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 100 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
| 104 }; | 101 }; |
| 105 | 102 |
| 106 } // namespace content | 103 } // namespace content |
| 107 | 104 |
| 108 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 105 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
| OLD | NEW |