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 NET_HTTP_HTTP_TRANSACTION_H_ | 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ |
6 #define NET_HTTP_HTTP_TRANSACTION_H_ | 6 #define NET_HTTP_HTTP_TRANSACTION_H_ |
7 | 7 |
8 #include "net/base/completion_callback.h" | 8 #include "net/base/completion_callback.h" |
9 #include "net/base/load_states.h" | 9 #include "net/base/load_states.h" |
10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
11 #include "net/base/request_priority.h" | 11 #include "net/base/request_priority.h" |
12 #include "net/base/upload_progress.h" | 12 #include "net/base/upload_progress.h" |
| 13 #include "net/websockets/websocket_handshake_stream_base.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 | 16 |
16 class AuthCredentials; | 17 class AuthCredentials; |
17 class BoundNetLog; | 18 class BoundNetLog; |
18 class HttpRequestHeaders; | 19 class HttpRequestHeaders; |
19 struct HttpRequestInfo; | 20 struct HttpRequestInfo; |
20 class HttpResponseInfo; | 21 class HttpResponseInfo; |
21 class IOBuffer; | 22 class IOBuffer; |
22 struct LoadTimingInfo; | 23 struct LoadTimingInfo; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 128 |
128 // Populates all of load timing, except for request start times and receive | 129 // Populates all of load timing, except for request start times and receive |
129 // headers time. | 130 // headers time. |
130 // |load_timing_info| must have all null times when called. Returns false and | 131 // |load_timing_info| must have all null times when called. Returns false and |
131 // does not modify |load_timing_info| if there's no timing information to | 132 // does not modify |load_timing_info| if there's no timing information to |
132 // provide. | 133 // provide. |
133 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; | 134 virtual bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const = 0; |
134 | 135 |
135 // Called when the priority of the parent job changes. | 136 // Called when the priority of the parent job changes. |
136 virtual void SetPriority(RequestPriority priority) = 0; | 137 virtual void SetPriority(RequestPriority priority) = 0; |
| 138 |
| 139 // Set the WebSocketHandshakeStreamBase::CreateHelper to be used for the |
| 140 // request. Only relevant to WebSocket transactions. Must be called before |
| 141 // Start(). Ownership of |create_helper| remains with the caller. |
| 142 virtual void SetWebSocketHandshakeStreamCreateHelper( |
| 143 WebSocketHandshakeStreamBase::CreateHelper* create_helper) = 0; |
137 }; | 144 }; |
138 | 145 |
139 } // namespace net | 146 } // namespace net |
140 | 147 |
141 #endif // NET_HTTP_HTTP_TRANSACTION_H_ | 148 #endif // NET_HTTP_HTTP_TRANSACTION_H_ |
OLD | NEW |