Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: webkit/child/websocketstreamhandle_impl.cc

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.h ('k') | webkit/child/webthemeengine_impl_android.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/child/websocketstreamhandle_impl.h" 7 #include "webkit/child/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/strings/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/child/webkitplatformsupport_impl.h" 20 #include "webkit/child/webkitplatformsupport_impl.h"
21 #include "webkit/child/websocketstreamhandle_bridge.h" 21 #include "webkit/child/websocketstreamhandle_bridge.h"
22 #include "webkit/child/websocketstreamhandle_delegate.h" 22 #include "webkit/child/websocketstreamhandle_delegate.h"
23 23
24 using WebKit::WebData; 24 using blink::WebData;
25 using WebKit::WebSocketStreamError; 25 using blink::WebSocketStreamError;
26 using WebKit::WebSocketStreamHandle; 26 using blink::WebSocketStreamHandle;
27 using WebKit::WebSocketStreamHandleClient; 27 using blink::WebSocketStreamHandleClient;
28 using WebKit::WebURL; 28 using blink::WebURL;
29 29
30 namespace webkit_glue { 30 namespace webkit_glue {
31 31
32 // WebSocketStreamHandleImpl::Context ----------------------------------------- 32 // WebSocketStreamHandleImpl::Context -----------------------------------------
33 33
34 class WebSocketStreamHandleImpl::Context 34 class WebSocketStreamHandleImpl::Context
35 : public base::RefCounted<Context>, 35 : public base::RefCounted<Context>,
36 public WebSocketStreamHandleDelegate { 36 public WebSocketStreamHandleDelegate {
37 public: 37 public:
38 explicit Context(WebSocketStreamHandleImpl* handle); 38 explicit Context(WebSocketStreamHandleImpl* handle);
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 bool WebSocketStreamHandleImpl::send(const WebData& data) { 187 bool WebSocketStreamHandleImpl::send(const WebData& data) {
188 return context_->Send(data); 188 return context_->Send(data);
189 } 189 }
190 190
191 void WebSocketStreamHandleImpl::close() { 191 void WebSocketStreamHandleImpl::close() {
192 context_->Close(); 192 context_->Close();
193 } 193 }
194 194
195 } // namespace webkit_glue 195 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.h ('k') | webkit/child/webthemeengine_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698