| 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 94 |
| 95 // Called when metadata generated by the renderer is retrieved from the | 95 // Called when metadata generated by the renderer is retrieved from the |
| 96 // cache. This method may be called zero or one times. | 96 // cache. This method may be called zero or one times. |
| 97 virtual void OnReceivedCachedMetadata(const char* data, int len) {} | 97 virtual void OnReceivedCachedMetadata(const char* data, int len) {} |
| 98 | 98 |
| 99 // Called when the response is complete. This method signals completion of | 99 // Called when the response is complete. This method signals completion of |
| 100 // the resource load. | 100 // the resource load. |
| 101 virtual void OnCompletedRequest(int error_code, | 101 virtual void OnCompletedRequest(int error_code, |
| 102 bool was_ignored_by_handler, | 102 bool was_ignored_by_handler, |
| 103 bool stale_copy_in_cache, | 103 bool stale_copy_in_cache, |
| 104 const std::string& security_info, | |
| 105 const base::TimeTicks& completion_time, | 104 const base::TimeTicks& completion_time, |
| 106 int64_t total_transfer_size) = 0; | 105 int64_t total_transfer_size) = 0; |
| 107 | 106 |
| 108 virtual ~RequestPeer() {} | 107 virtual ~RequestPeer() {} |
| 109 }; | 108 }; |
| 110 | 109 |
| 111 } // namespace content | 110 } // namespace content |
| 112 | 111 |
| 113 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ | 112 #endif // CONTENT_PUBLIC_CHILD_REQUEST_PEER_H_ |
| OLD | NEW |