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 // 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 "base/string16.h" | 15 #include "base/strings/string16.h" |
16 #include "third_party/WebKit/public/platform/WebData.h" | 16 #include "third_party/WebKit/public/platform/WebData.h" |
17 #include "third_party/WebKit/public/platform/WebSocketStreamError.h" | 17 #include "third_party/WebKit/public/platform/WebSocketStreamError.h" |
18 #include "third_party/WebKit/public/platform/WebSocketStreamHandleClient.h" | 18 #include "third_party/WebKit/public/platform/WebSocketStreamHandleClient.h" |
19 #include "third_party/WebKit/public/platform/WebURL.h" | 19 #include "third_party/WebKit/public/platform/WebURL.h" |
20 #include "webkit/glue/webkitplatformsupport_impl.h" | 20 #include "webkit/glue/webkitplatformsupport_impl.h" |
21 #include "webkit/glue/websocketstreamhandle_bridge.h" | 21 #include "webkit/glue/websocketstreamhandle_bridge.h" |
22 #include "webkit/glue/websocketstreamhandle_delegate.h" | 22 #include "webkit/glue/websocketstreamhandle_delegate.h" |
23 | 23 |
24 using WebKit::WebData; | 24 using WebKit::WebData; |
25 using WebKit::WebSocketStreamError; | 25 using WebKit::WebSocketStreamError; |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 bool WebSocketStreamHandleImpl::send(const WebData& data) { | 188 bool WebSocketStreamHandleImpl::send(const WebData& data) { |
189 return context_->Send(data); | 189 return context_->Send(data); |
190 } | 190 } |
191 | 191 |
192 void WebSocketStreamHandleImpl::close() { | 192 void WebSocketStreamHandleImpl::close() { |
193 context_->Close(); | 193 context_->Close(); |
194 } | 194 } |
195 | 195 |
196 } // namespace webkit_glue | 196 } // namespace webkit_glue |
OLD | NEW |