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_THROTTLING_RESOURCE_HANDLER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ |
6 #define CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ | 6 #define CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 DeferredStage deferred_stage_; | 64 DeferredStage deferred_stage_; |
65 | 65 |
66 ScopedVector<ResourceThrottle> throttles_; | 66 ScopedVector<ResourceThrottle> throttles_; |
67 size_t next_index_; | 67 size_t next_index_; |
68 | 68 |
69 GURL deferred_url_; | 69 GURL deferred_url_; |
70 net::RedirectInfo deferred_redirect_; | 70 net::RedirectInfo deferred_redirect_; |
71 scoped_refptr<ResourceResponse> deferred_response_; | 71 scoped_refptr<ResourceResponse> deferred_response_; |
72 | 72 |
73 bool cancelled_by_resource_throttle_; | 73 bool cancelled_by_resource_throttle_; |
| 74 |
| 75 // True if currently calling into a throttle, false otherwise. False when |
| 76 // waiting on a throttle that has delayed the request. |
| 77 // TODO(mmenke): Remove once https://crbug.com/640545 is resolved. |
| 78 bool currently_calling_throttle_; |
74 }; | 79 }; |
75 | 80 |
76 } // namespace content | 81 } // namespace content |
77 | 82 |
78 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ | 83 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ |
OLD | NEW |