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

Side by Side Diff: net/http/http_transaction.h

Issue 23856018: Changes to HttpNetworkTransaction for WebSocket Handshake (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add tests by yhirano Created 7 years, 1 month 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 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
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::Factory to be used for the request.
140 // Only relevant to WebSocket transactions. Must be called before
141 // Start(). Ownership of |factory| remains with the caller.
142 virtual void SetWebSocketHandshakeStreamFactory(
143 WebSocketHandshakeStreamBase::Factory* factory) = 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698