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

Side by Side Diff: chrome/renderer/security_filter_peer.h

Issue 2835123005: Send the decoded size when response completed and stop summing in ResourceLoader::DidReceiveData() (Closed)
Patch Set: Created 3 years, 8 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 5 #ifndef CHROME_RENDERER_SECURITY_FILTER_PEER_H_
6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 6 #define CHROME_RENDERER_SECURITY_FILTER_PEER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 ~ReplaceContentPeer() override; 64 ~ReplaceContentPeer() override;
65 65
66 // content::RequestPeer Implementation. 66 // content::RequestPeer Implementation.
67 void OnReceivedResponse(const content::ResourceResponseInfo& info) override; 67 void OnReceivedResponse(const content::ResourceResponseInfo& info) override;
68 void OnReceivedData(std::unique_ptr<ReceivedData> data) override; 68 void OnReceivedData(std::unique_ptr<ReceivedData> data) override;
69 void OnCompletedRequest(int error_code, 69 void OnCompletedRequest(int error_code,
70 bool was_ignored_by_handler, 70 bool was_ignored_by_handler,
71 bool stale_copy_in_cache, 71 bool stale_copy_in_cache,
72 const base::TimeTicks& completion_time, 72 const base::TimeTicks& completion_time,
73 int64_t total_transfer_size, 73 int64_t total_transfer_size,
74 int64_t encoded_body_size) override; 74 int64_t encoded_body_size,
75 int64_t decoded_body_size) override;
75 76
76 private: 77 private:
77 content::ResourceResponseInfo response_info_; 78 content::ResourceResponseInfo response_info_;
78 std::string mime_type_; 79 std::string mime_type_;
79 std::string data_; 80 std::string data_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); 82 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer);
82 }; 83 };
83 84
84 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 85 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/extension_localization_peer_unittest.cc ('k') | chrome/renderer/security_filter_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698