| 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 // An implementation of WebSocketStreamHandle. | 5 // An implementation of WebSocketStreamHandle. |
| 6 | 6 |
| 7 #include "webkit/glue/websocketstreamhandle_impl.h" | 7 #include "webkit/glue/websocketstreamhandle_impl.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebData.h" | 15 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" |
| 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 16 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSocketStreamHandle
Client.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSocketStr
eamHandleClient.h" |
| 18 #include "webkit/glue/webkitplatformsupport_impl.h" | 18 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 19 #include "webkit/glue/websocketstreamhandle_bridge.h" | 19 #include "webkit/glue/websocketstreamhandle_bridge.h" |
| 20 #include "webkit/glue/websocketstreamhandle_delegate.h" | 20 #include "webkit/glue/websocketstreamhandle_delegate.h" |
| 21 | 21 |
| 22 namespace webkit_glue { | 22 namespace webkit_glue { |
| 23 | 23 |
| 24 // WebSocketStreamHandleImpl::Context ----------------------------------------- | 24 // WebSocketStreamHandleImpl::Context ----------------------------------------- |
| 25 | 25 |
| 26 class WebSocketStreamHandleImpl::Context | 26 class WebSocketStreamHandleImpl::Context |
| 27 : public base::RefCounted<Context>, | 27 : public base::RefCounted<Context>, |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 | 165 |
| 166 bool WebSocketStreamHandleImpl::send(const WebKit::WebData& data) { | 166 bool WebSocketStreamHandleImpl::send(const WebKit::WebData& data) { |
| 167 return context_->Send(data); | 167 return context_->Send(data); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void WebSocketStreamHandleImpl::close() { | 170 void WebSocketStreamHandleImpl::close() { |
| 171 context_->Close(); | 171 context_->Close(); |
| 172 } | 172 } |
| 173 | 173 |
| 174 } // namespace webkit_glue | 174 } // namespace webkit_glue |
| OLD | NEW |