OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |