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