| 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> |
| 9 |
| 8 #include <queue> | 10 #include <queue> |
| 9 | 11 |
| 12 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 13 #include "ppapi/host/host_message_context.h" | 16 #include "ppapi/host/host_message_context.h" |
| 14 #include "ppapi/host/resource_host.h" | 17 #include "ppapi/host/resource_host.h" |
| 15 #include "ppapi/proxy/resource_message_params.h" | 18 #include "ppapi/proxy/resource_message_params.h" |
| 16 #include "third_party/WebKit/public/web/WebSocket.h" | 19 #include "third_party/WebKit/public/web/WebSocket.h" |
| 17 #include "third_party/WebKit/public/web/WebSocketClient.h" | 20 #include "third_party/WebKit/public/web/WebSocketClient.h" |
| 18 | 21 |
| 19 namespace ppapi { | 22 namespace ppapi { |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Keeps the WebKit side WebSocket object. This is used for calling WebKit | 94 // Keeps the WebKit side WebSocket object. This is used for calling WebKit |
| 92 // side functions via WebKit API. | 95 // side functions via WebKit API. |
| 93 scoped_ptr<blink::WebSocket> websocket_; | 96 scoped_ptr<blink::WebSocket> websocket_; |
| 94 | 97 |
| 95 DISALLOW_COPY_AND_ASSIGN(PepperWebSocketHost); | 98 DISALLOW_COPY_AND_ASSIGN(PepperWebSocketHost); |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace content | 101 } // namespace content |
| 99 | 102 |
| 100 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ | 103 #endif // CONTENT_RENDERER_PEPPER_PEPPER_WEBSOCKET_HOST_H_ |
| OLD | NEW |