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

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

Issue 2540023003: Dispatch encoded_data_length separately in content/child (Closed)
Patch Set: fix Created 4 years 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 21 matching lines...) Expand all
32 32
33 static std::unique_ptr<content::RequestPeer> CreateSecurityFilterPeerForFrame( 33 static std::unique_ptr<content::RequestPeer> CreateSecurityFilterPeerForFrame(
34 std::unique_ptr<content::RequestPeer> peer, 34 std::unique_ptr<content::RequestPeer> peer,
35 int os_error); 35 int os_error);
36 36
37 // content::RequestPeer methods. 37 // content::RequestPeer methods.
38 void OnUploadProgress(uint64_t position, uint64_t size) override; 38 void OnUploadProgress(uint64_t position, uint64_t size) override;
39 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info, 39 bool OnReceivedRedirect(const net::RedirectInfo& redirect_info,
40 const content::ResourceResponseInfo& info) override; 40 const content::ResourceResponseInfo& info) override;
41 void OnDownloadedData(int len, int encoded_data_length) override {} 41 void OnDownloadedData(int len, int encoded_data_length) override {}
42 void OnTransferSizeUpdated(int transfer_size_diff) override;
42 43
43 protected: 44 protected:
44 explicit SecurityFilterPeer(std::unique_ptr<content::RequestPeer> peer); 45 explicit SecurityFilterPeer(std::unique_ptr<content::RequestPeer> peer);
45 46
46 std::unique_ptr<content::RequestPeer> original_peer_; 47 std::unique_ptr<content::RequestPeer> original_peer_;
47 48
48 private: 49 private:
49 DISALLOW_COPY_AND_ASSIGN(SecurityFilterPeer); 50 DISALLOW_COPY_AND_ASSIGN(SecurityFilterPeer);
50 }; 51 };
51 52
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 private: 110 private:
110 content::ResourceResponseInfo response_info_; 111 content::ResourceResponseInfo response_info_;
111 std::string mime_type_; 112 std::string mime_type_;
112 std::string data_; 113 std::string data_;
113 114
114 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer); 115 DISALLOW_COPY_AND_ASSIGN(ReplaceContentPeer);
115 }; 116 };
116 117
117 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_ 118 #endif // CHROME_RENDERER_SECURITY_FILTER_PEER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698