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

Side by Side Diff: content/browser/loader/test_url_loader_client.h

Issue 2906543002: Add support for reading blobs when using the network service. (Closed)
Patch Set: fix threading issue with weakptr Created 3 years, 6 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
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_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
6 #define CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_ 6 #define CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 return has_received_cached_metadata_; 54 return has_received_cached_metadata_;
55 } 55 }
56 bool has_received_completion() const { return has_received_completion_; } 56 bool has_received_completion() const { return has_received_completion_; }
57 const ResourceResponseHead& response_head() const { return response_head_; } 57 const ResourceResponseHead& response_head() const { return response_head_; }
58 const base::Optional<net::SSLInfo>& ssl_info() const { return ssl_info_; } 58 const base::Optional<net::SSLInfo>& ssl_info() const { return ssl_info_; }
59 const net::RedirectInfo& redirect_info() const { return redirect_info_; } 59 const net::RedirectInfo& redirect_info() const { return redirect_info_; }
60 const std::string& cached_metadata() const { 60 const std::string& cached_metadata() const {
61 return cached_metadata_; 61 return cached_metadata_;
62 } 62 }
63 mojo::DataPipeConsumerHandle response_body() { return response_body_.get(); } 63 mojo::DataPipeConsumerHandle response_body() { return response_body_.get(); }
64 mojo::ScopedDataPipeConsumerHandle response_body_release() {
65 return std::move(response_body_);
66 }
64 const ResourceRequestCompletionStatus& completion_status() const { 67 const ResourceRequestCompletionStatus& completion_status() const {
65 return completion_status_; 68 return completion_status_;
66 } 69 }
67 int64_t download_data_length() const { return download_data_length_; } 70 int64_t download_data_length() const { return download_data_length_; }
68 int64_t encoded_download_data_length() const { 71 int64_t encoded_download_data_length() const {
69 return encoded_download_data_length_; 72 return encoded_download_data_length_;
70 } 73 }
71 int64_t body_transfer_size() const { return body_transfer_size_; } 74 int64_t body_transfer_size() const { return body_transfer_size_; }
72 int64_t current_upload_position() const { return current_upload_position_; } 75 int64_t current_upload_position() const { return current_upload_position_; }
73 int64_t total_upload_size() const { return total_upload_size_; } 76 int64_t total_upload_size() const { return total_upload_size_; }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 int64_t body_transfer_size_ = 0; 118 int64_t body_transfer_size_ = 0;
116 int64_t current_upload_position_ = 0; 119 int64_t current_upload_position_ = 0;
117 int64_t total_upload_size_ = 0; 120 int64_t total_upload_size_ = 0;
118 121
119 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderClient); 122 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderClient);
120 }; 123 };
121 124
122 } // namespace content 125 } // namespace content
123 126
124 #endif // CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_ 127 #endif // CONTENT_BROWSER_LOADER_TEST_URL_LOADER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/loader/navigation_url_loader_network_service.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698