OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ |
6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <queue> | 11 #include <queue> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
16 #include "ppapi/host/host_message_context.h" | 16 #include "ppapi/host/host_message_context.h" |
17 #include "ppapi/host/resource_host.h" | 17 #include "ppapi/host/resource_host.h" |
18 #include "ppapi/proxy/resource_message_params.h" | 18 #include "ppapi/proxy/resource_message_params.h" |
19 #include "third_party/WebKit/public/web/WebPepperSocket.h" | 19 #include "third_party/WebKit/public/web/WebPepperSocket.h" |
20 #include "third_party/WebKit/public/web/WebPepperSocketClient.h" | 20 #include "third_party/WebKit/public/web/WebPepperSocketClient.h" |
21 | 21 |
22 namespace ppapi { | |
23 class StringVar; | |
24 class Var; | |
25 } // namespace ppapi | |
26 | |
27 namespace content { | 22 namespace content { |
28 | 23 |
29 class RendererPpapiHost; | 24 class RendererPpapiHost; |
30 | 25 |
31 class CONTENT_EXPORT PepperWebSocketHost | 26 class CONTENT_EXPORT PepperWebSocketHost |
32 : public ppapi::host::ResourceHost, | 27 : public ppapi::host::ResourceHost, |
33 public NON_EXPORTED_BASE(::blink::WebPepperSocketClient) { | 28 public NON_EXPORTED_BASE(::blink::WebPepperSocketClient) { |
34 public: | 29 public: |
35 explicit PepperWebSocketHost(RendererPpapiHost* host, | 30 explicit PepperWebSocketHost(RendererPpapiHost* host, |
36 PP_Instance instance, | 31 PP_Instance instance, |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // Keeps the WebKit side WebSocket object. This is used for calling WebKit | 89 // Keeps the WebKit side WebSocket object. This is used for calling WebKit |
95 // side functions via WebKit API. | 90 // side functions via WebKit API. |
96 std::unique_ptr<blink::WebPepperSocket> websocket_; | 91 std::unique_ptr<blink::WebPepperSocket> websocket_; |
97 | 92 |
98 DISALLOW_COPY_AND_ASSIGN(PepperWebSocketHost); | 93 DISALLOW_COPY_AND_ASSIGN(PepperWebSocketHost); |
99 }; | 94 }; |
100 | 95 |
101 } // namespace content | 96 } // namespace content |
102 | 97 |
103 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ | 98 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ |
OLD | NEW |