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

Side by Side Diff: content/public/browser/websocket_handshake_request_info.h

Issue 2397393002: Provide child/frame IDs for WebSocket handshake request (Closed)
Patch Set: fix Created 4 years, 2 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
6 #define CONTENT_PUBLIC_BROWSER_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
7
8 #include "content/common/content_export.h"
9
10 namespace net {
11 class URLRequest;
12 } // namespace net
13
14 namespace content {
15
16 // WebSocketHandshakeRequestInfo provides additional information attached to
17 // a net::URLRequest.
18 class WebSocketHandshakeRequestInfo {
19 public:
20 virtual ~WebSocketHandshakeRequestInfo() {}
21 // Returns the ID of the child process where the WebSocket connection lives.
22 virtual int GetChildId() const = 0;
23 // Returns the ID of the renderrer frame where the WebSocket connection lives.
jam 2016/10/12 15:59:28 nit: renderer
yhirano 2016/10/13 05:55:18 Done.
24 virtual int GetFrameId() const = 0;
jam 2016/10/12 15:59:28 call this GetRenderFrameID() to make it clear that
yhirano 2016/10/13 05:55:18 Done.
25
26 // Returns the WebSocketHandshakeRequestInfo instance attached to the given
27 // URLRequest. Returns nullptr when no instance is attached.
28 CONTENT_EXPORT static const WebSocketHandshakeRequestInfo* ForRequest(
29 const net::URLRequest* request);
30 };
31
32 } // namespace content
33
34 #endif // CONTENT_PUBLIC_BROWSER_WEBSOCKET_HANDSHAKE_REQUEST_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698