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

Unified Diff: net/websockets/websocket_channel.h

Issue 2003253002: [Devtools] Allow User-Agent header override for Websockets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tests Created 4 years, 6 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/websocket_messages.h ('k') | net/websockets/websocket_channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_channel.h
diff --git a/net/websockets/websocket_channel.h b/net/websockets/websocket_channel.h
index 002212b2f63009b86e9ee020f9192e4a3077d894..8e7e8c36866bb9391d7b05599ca6f48a8d8e02f4 100644
--- a/net/websockets/websocket_channel.h
+++ b/net/websockets/websocket_channel.h
@@ -50,6 +50,7 @@ class NET_EXPORT WebSocketChannel {
const GURL&,
const std::vector<std::string>&,
const url::Origin&,
+ const std::string&,
URLRequestContext*,
const BoundNetLog&,
std::unique_ptr<WebSocketStream::ConnectDelegate>)>
@@ -71,7 +72,8 @@ class NET_EXPORT WebSocketChannel {
void SendAddChannelRequest(
const GURL& socket_url,
const std::vector<std::string>& requested_protocols,
- const url::Origin& origin);
+ const url::Origin& origin,
+ const std::string& additional_headers);
// Sends a data frame to the remote side. It is the responsibility of the
// caller to ensure that they have sufficient send quota to send this data,
@@ -121,6 +123,7 @@ class NET_EXPORT WebSocketChannel {
const GURL& socket_url,
const std::vector<std::string>& requested_protocols,
const url::Origin& origin,
+ const std::string& additional_headers,
const WebSocketStreamCreator& creator);
// The default timout for the closing handshake is a sensible value (see
@@ -213,6 +216,7 @@ class NET_EXPORT WebSocketChannel {
const GURL& socket_url,
const std::vector<std::string>& requested_protocols,
const url::Origin& origin,
+ const std::string& additional_headers,
const WebSocketStreamCreator& creator);
// Success callback from WebSocketStream::CreateAndConnectStream(). Reports
« no previous file with comments | « content/common/websocket_messages.h ('k') | net/websockets/websocket_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698