OLD | NEW |
(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_ |
OLD | NEW |