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

Side by Side Diff: content/browser/websockets/websocket_handshake_request_info_impl.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_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_
6 #define CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_
7
8 #include "content/public/browser/websocket_handshake_request_info.h"
9
10 #include "base/macros.h"
11 #include "base/supports_user_data.h"
12
13 namespace content {
14
15 class WebSocketHandshakeRequestInfoImpl final
16 : public WebSocketHandshakeRequestInfo,
17 public base::SupportsUserData::Data {
18 public:
19 static void CreateInfoAndAssociateWithRequest(int child_id,
20 int frame_id,
21 net::URLRequest* request);
22
23 int GetChildId() const override;
24 int GetFrameId() const override;
25
26 private:
27 WebSocketHandshakeRequestInfoImpl(int child_id, int frame_id);
28 ~WebSocketHandshakeRequestInfoImpl() override;
29
30 const int child_id_;
31 const int frame_id_;
32
33 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeRequestInfoImpl);
34 };
35
36 } // namespace content
37
38 #endif // CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698