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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "base/time/time.h" |
11 #include "content/browser/loader/resource_handler.h" | 12 #include "content/browser/loader/resource_handler.h" |
12 #include "content/browser/loader/resource_message_delegate.h" | 13 #include "content/browser/loader/resource_message_delegate.h" |
13 #include "url/gurl.h" | 14 #include "url/gurl.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 class URLRequest; | 17 class URLRequest; |
17 } | 18 } |
18 | 19 |
19 namespace content { | 20 namespace content { |
20 class ResourceBuffer; | 21 class ResourceBuffer; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 int allocation_size_; | 72 int allocation_size_; |
72 | 73 |
73 bool did_defer_; | 74 bool did_defer_; |
74 | 75 |
75 bool has_checked_for_sufficient_resources_; | 76 bool has_checked_for_sufficient_resources_; |
76 bool sent_received_response_msg_; | 77 bool sent_received_response_msg_; |
77 bool sent_first_data_msg_; | 78 bool sent_first_data_msg_; |
78 | 79 |
79 int64_t reported_transfer_size_; | 80 int64_t reported_transfer_size_; |
80 | 81 |
| 82 base::TimeTicks redirect_start_time_; |
| 83 |
81 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); | 84 DISALLOW_COPY_AND_ASSIGN(AsyncResourceHandler); |
82 }; | 85 }; |
83 | 86 |
84 } // namespace content | 87 } // namespace content |
85 | 88 |
86 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ | 89 #endif // CONTENT_BROWSER_LOADER_ASYNC_RESOURCE_HANDLER_H_ |
OLD | NEW |