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

Side by Side Diff: content/browser/renderer_host/websocket_host.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, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 private: 63 private:
64 class WebSocketEventHandler; 64 class WebSocketEventHandler;
65 65
66 // Handlers for each message type, dispatched by OnMessageReceived(), as 66 // Handlers for each message type, dispatched by OnMessageReceived(), as
67 // defined in content/common/websocket_messages.h 67 // defined in content/common/websocket_messages.h
68 68
69 void OnAddChannelRequest(const GURL& socket_url, 69 void OnAddChannelRequest(const GURL& socket_url,
70 const std::vector<std::string>& requested_protocols, 70 const std::vector<std::string>& requested_protocols,
71 const url::Origin& origin, 71 const url::Origin& origin,
72 const std::string& user_agent_override,
72 int render_frame_id); 73 int render_frame_id);
73 74
74 void AddChannel(const GURL& socket_url, 75 void AddChannel(const GURL& socket_url,
75 const std::vector<std::string>& requested_protocols, 76 const std::vector<std::string>& requested_protocols,
76 const url::Origin& origin, 77 const url::Origin& origin,
78 const std::string& user_agent_override,
77 int render_frame_id); 79 int render_frame_id);
78 80
79 void OnSendBlob(const std::string& uuid, uint64_t expected_size); 81 void OnSendBlob(const std::string& uuid, uint64_t expected_size);
80 82
81 void OnSendFrame(bool fin, 83 void OnSendFrame(bool fin,
82 WebSocketMessageType type, 84 WebSocketMessageType type,
83 const std::vector<char>& data); 85 const std::vector<char>& data);
84 86
85 void OnFlowControl(int64_t quota); 87 void OnFlowControl(int64_t quota);
86 88
(...skipping 29 matching lines...) Expand all
116 bool handshake_succeeded_; 118 bool handshake_succeeded_;
117 119
118 base::WeakPtrFactory<WebSocketHost> weak_ptr_factory_; 120 base::WeakPtrFactory<WebSocketHost> weak_ptr_factory_;
119 121
120 DISALLOW_COPY_AND_ASSIGN(WebSocketHost); 122 DISALLOW_COPY_AND_ASSIGN(WebSocketHost);
121 }; 123 };
122 124
123 } // namespace content 125 } // namespace content
124 126
125 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_ 127 #endif // CONTENT_BROWSER_RENDERER_HOST_WEBSOCKET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/websocket_dispatcher_host_unittest.cc ('k') | content/browser/renderer_host/websocket_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698