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_RESOURCE_LOADER_H_ | 5 #ifndef CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 6 #define CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 STATUS_UNDEFINED, | 101 STATUS_UNDEFINED, |
102 STATUS_SUCCESS_FROM_CACHE, | 102 STATUS_SUCCESS_FROM_CACHE, |
103 STATUS_SUCCESS_FROM_NETWORK, | 103 STATUS_SUCCESS_FROM_NETWORK, |
104 STATUS_CANCELED, | 104 STATUS_CANCELED, |
105 STATUS_MAX, | 105 STATUS_MAX, |
106 }; | 106 }; |
107 | 107 |
108 enum DeferredStage { | 108 enum DeferredStage { |
109 DEFERRED_NONE, | 109 DEFERRED_NONE, |
110 DEFERRED_START, | 110 DEFERRED_START, |
111 DEFERRED_NETWORK_START, | |
112 DEFERRED_REDIRECT, | 111 DEFERRED_REDIRECT, |
113 DEFERRED_READ, | 112 DEFERRED_READ, |
114 DEFERRED_RESPONSE_COMPLETE, | 113 DEFERRED_RESPONSE_COMPLETE, |
115 DEFERRED_FINISH | 114 DEFERRED_FINISH |
116 }; | 115 }; |
117 DeferredStage deferred_stage_; | 116 DeferredStage deferred_stage_; |
118 | 117 |
119 std::unique_ptr<net::URLRequest> request_; | 118 std::unique_ptr<net::URLRequest> request_; |
120 std::unique_ptr<ResourceHandler> handler_; | 119 std::unique_ptr<ResourceHandler> handler_; |
121 ResourceLoaderDelegate* delegate_; | 120 ResourceLoaderDelegate* delegate_; |
(...skipping 15 matching lines...) Expand all Loading... |
137 int times_cancelled_after_request_start_; | 136 int times_cancelled_after_request_start_; |
138 | 137 |
139 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; | 138 base::WeakPtrFactory<ResourceLoader> weak_ptr_factory_; |
140 | 139 |
141 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); | 140 DISALLOW_COPY_AND_ASSIGN(ResourceLoader); |
142 }; | 141 }; |
143 | 142 |
144 } // namespace content | 143 } // namespace content |
145 | 144 |
146 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ | 145 #endif // CONTENT_BROWSER_LOADER_RESOURCE_LOADER_H_ |
OLD | NEW |