| 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 "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "content/browser/loader/layered_resource_handler.h" | 10 #include "content/browser/loader/layered_resource_handler.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 void ResumeResponse(); | 52 void ResumeResponse(); |
| 53 | 53 |
| 54 enum DeferredStage { | 54 enum DeferredStage { |
| 55 DEFERRED_NONE, | 55 DEFERRED_NONE, |
| 56 DEFERRED_START, | 56 DEFERRED_START, |
| 57 DEFERRED_REDIRECT, | 57 DEFERRED_REDIRECT, |
| 58 DEFERRED_RESPONSE | 58 DEFERRED_RESPONSE |
| 59 }; | 59 }; |
| 60 DeferredStage deferred_stage_; | 60 DeferredStage deferred_stage_; |
| 61 | 61 |
| 62 net::URLRequest* request_; |
| 63 |
| 62 ScopedVector<ResourceThrottle> throttles_; | 64 ScopedVector<ResourceThrottle> throttles_; |
| 63 size_t index_; | 65 size_t index_; |
| 64 | 66 |
| 65 GURL deferred_url_; | 67 GURL deferred_url_; |
| 66 scoped_refptr<ResourceResponse> deferred_response_; | 68 scoped_refptr<ResourceResponse> deferred_response_; |
| 67 | 69 |
| 68 bool cancelled_by_resource_throttle_; | 70 bool cancelled_by_resource_throttle_; |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 } // namespace content | 73 } // namespace content |
| 72 | 74 |
| 73 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ | 75 #endif // CONTENT_BROWSER_LOADER_THROTTLING_RESOURCE_HANDLER_H_ |
| OLD | NEW |