Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: content/child/test_request_peer.h

Issue 2591383003: Implement SetDefersLoading on content::URLLoaderClientImpl (Closed)
Patch Set: fix Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/test_request_peer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/child/resource_dispatcher.cc ('k') | content/child/test_request_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698