| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" | 5 #include "webkit/plugins/ppapi/ppb_websocket_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
| 13 #include "ppapi/c/pp_completion_callback.h" | 13 #include "ppapi/c/pp_completion_callback.h" |
| 14 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
| 15 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
| 16 #include "ppapi/c/ppb_var.h" | 16 #include "ppapi/c/ppb_var.h" |
| 17 #include "ppapi/shared_impl/var.h" | 17 #include "ppapi/shared_impl/var.h" |
| 18 #include "ppapi/shared_impl/var_tracker.h" | 18 #include "ppapi/shared_impl/var_tracker.h" |
| 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 19 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" | 21 #include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h" |
| 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPluginContainer.h" |
| 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
| 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSocket.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSocket.h" |
| 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 25 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 26 #include "webkit/plugins/ppapi/host_globals.h" | 26 #include "webkit/plugins/ppapi/host_globals.h" |
| 27 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 27 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
| 28 #include "webkit/plugins/ppapi/resource_helper.h" | 28 #include "webkit/plugins/ppapi/resource_helper.h" |
| 29 | 29 |
| 30 using ppapi::PpapiGlobals; | 30 using ppapi::PpapiGlobals; |
| 31 using ppapi::StringVar; | 31 using ppapi::StringVar; |
| 32 using ppapi::thunk::PPB_WebSocket_API; | 32 using ppapi::thunk::PPB_WebSocket_API; |
| 33 using ppapi::VarTracker; | 33 using ppapi::VarTracker; |
| 34 using WebKit::WebData; | 34 using WebKit::WebData; |
| 35 using WebKit::WebDocument; | 35 using WebKit::WebDocument; |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 | 426 |
| 427 *receive_callback_var_ = received_messages_.front(); | 427 *receive_callback_var_ = received_messages_.front(); |
| 428 received_messages_.pop(); | 428 received_messages_.pop(); |
| 429 receive_callback_var_ = NULL; | 429 receive_callback_var_ = NULL; |
| 430 wait_for_receive_ = false; | 430 wait_for_receive_ = false; |
| 431 return PP_OK; | 431 return PP_OK; |
| 432 } | 432 } |
| 433 | 433 |
| 434 } // namespace ppapi | 434 } // namespace ppapi |
| 435 } // namespace webkit | 435 } // namespace webkit |
| OLD | NEW |