OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ |
6 #define CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ | 6 #define CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ |
7 | 7 |
8 #include "content/public/browser/websocket_handshake_request_info.h" | 8 #include "content/public/browser/websocket_handshake_request_info.h" |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/supports_user_data.h" | 11 #include "base/supports_user_data.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 class WebSocketHandshakeRequestInfoImpl final | 15 class WebSocketHandshakeRequestInfoImpl final |
16 : public WebSocketHandshakeRequestInfo, | 16 : public WebSocketHandshakeRequestInfo, |
17 public base::SupportsUserData::Data { | 17 public base::SupportsUserData::Data { |
18 public: | 18 public: |
| 19 ~WebSocketHandshakeRequestInfoImpl() override; |
| 20 |
19 static void CreateInfoAndAssociateWithRequest(int child_id, | 21 static void CreateInfoAndAssociateWithRequest(int child_id, |
20 int render_frame_id, | 22 int render_frame_id, |
21 net::URLRequest* request); | 23 net::URLRequest* request); |
22 | 24 |
23 int GetChildId() const override; | 25 int GetChildId() const override; |
24 int GetRenderFrameId() const override; | 26 int GetRenderFrameId() const override; |
25 | 27 |
26 private: | 28 private: |
27 WebSocketHandshakeRequestInfoImpl(int child_id, int render_frame_id); | 29 WebSocketHandshakeRequestInfoImpl(int child_id, int render_frame_id); |
28 ~WebSocketHandshakeRequestInfoImpl() override; | |
29 | 30 |
30 const int child_id_; | 31 const int child_id_; |
31 const int render_frame_id_; | 32 const int render_frame_id_; |
32 | 33 |
33 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeRequestInfoImpl); | 34 DISALLOW_COPY_AND_ASSIGN(WebSocketHandshakeRequestInfoImpl); |
34 }; | 35 }; |
35 | 36 |
36 } // namespace content | 37 } // namespace content |
37 | 38 |
38 #endif // CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ | 39 #endif // CONTENT_BROWSER_WEBSOCKET_WEBSOCKET_HANDSHAKE_REQUEST_INFO_IMPL_H_ |
OLD | NEW |