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

Side by Side Diff: content/public/child/request_peer.h

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_CHILD_REQUEST_PEER_H_ 5 #ifndef CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 6 #define CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // cache. This method may be called zero or one times. 91 // cache. This method may be called zero or one times.
92 virtual void OnReceivedCachedMetadata(const char* data, int len) {} 92 virtual void OnReceivedCachedMetadata(const char* data, int len) {}
93 93
94 // Called when the response is complete. This method signals completion of 94 // Called when the response is complete. This method signals completion of
95 // the resource load. 95 // the resource load.
96 virtual void OnCompletedRequest(int error_code, 96 virtual void OnCompletedRequest(int error_code,
97 bool was_ignored_by_handler, 97 bool was_ignored_by_handler,
98 bool stale_copy_in_cache, 98 bool stale_copy_in_cache,
99 const base::TimeTicks& completion_time, 99 const base::TimeTicks& completion_time,
100 int64_t total_transfer_size, 100 int64_t total_transfer_size,
101 int64_t encoded_body_size) = 0; 101 int64_t encoded_body_size,
102 int64_t decoded_body_size) = 0;
102 103
103 virtual ~RequestPeer() {} 104 virtual ~RequestPeer() {}
104 }; 105 };
105 106
106 } // namespace content 107 } // namespace content
107 108
108 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ 109 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_
OLDNEW
« no previous file with comments | « content/common/resource_request_completion_status.h ('k') | content/renderer/fetchers/resource_fetcher_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698