OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHILD_TEST_REQUEST_PEER_H_ | 5 #ifndef CONTENT_CHILD_TEST_REQUEST_PEER_H_ |
6 #define CONTENT_CHILD_TEST_REQUEST_PEER_H_ | 6 #define CONTENT_CHILD_TEST_REQUEST_PEER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool cancel_on_receive_response = false; | 58 bool cancel_on_receive_response = false; |
59 bool cancel_on_receive_data = false; | 59 bool cancel_on_receive_data = false; |
60 bool received_response = false; | 60 bool received_response = false; |
61 | 61 |
62 // Data received. If downloading to file, remains empty. | 62 // Data received. If downloading to file, remains empty. |
63 std::string data; | 63 std::string data; |
64 | 64 |
65 // Total encoded data length, regardless of whether downloading to a file or | 65 // Total encoded data length, regardless of whether downloading to a file or |
66 // not. | 66 // not. |
67 int total_encoded_data_length = 0; | 67 int total_encoded_data_length = 0; |
| 68 bool defer_on_transfer_size_updated = false; |
| 69 |
68 // Total length when downloading to a file. | 70 // Total length when downloading to a file. |
69 int total_downloaded_data_length = 0; | 71 int total_downloaded_data_length = 0; |
70 | 72 |
71 bool complete = false; | 73 bool complete = false; |
72 bool cancelled = false; | 74 bool cancelled = false; |
73 int request_id = -1; | 75 int request_id = -1; |
74 }; | 76 }; |
75 | 77 |
76 private: | 78 private: |
77 ResourceDispatcher* dispatcher_; | 79 ResourceDispatcher* dispatcher_; |
78 Context* context_; | 80 Context* context_; |
79 | 81 |
80 DISALLOW_COPY_AND_ASSIGN(TestRequestPeer); | 82 DISALLOW_COPY_AND_ASSIGN(TestRequestPeer); |
81 }; | 83 }; |
82 | 84 |
83 } // namespace content | 85 } // namespace content |
84 | 86 |
85 #endif // CONTENT_CHILD_TEST_REQUEST_PEER_H_ | 87 #endif // CONTENT_CHILD_TEST_REQUEST_PEER_H_ |
OLD | NEW |