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

Unified Diff: webkit/child/websocketstreamhandle_impl.cc

Issue 185553014: Revert "Revert 254514 "Revert 254507 "Reland "Move WebKitPlatformSupport..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.h ('k') | webkit/child/weburlloader_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/child/websocketstreamhandle_impl.cc
diff --git a/content/child/web_socket_stream_handle_impl.cc b/webkit/child/websocketstreamhandle_impl.cc
similarity index 91%
rename from content/child/web_socket_stream_handle_impl.cc
rename to webkit/child/websocketstreamhandle_impl.cc
index 29152ec404fabd79f56230fbae755029c039cda7..761749f64599fc8325eab50e920360db20bb9086 100644
--- a/content/child/web_socket_stream_handle_impl.cc
+++ b/webkit/child/websocketstreamhandle_impl.cc
@@ -4,7 +4,7 @@
// An implementation of WebSocketStreamHandle.
-#include "content/child/web_socket_stream_handle_impl.h"
+#include "webkit/child/websocketstreamhandle_impl.h"
#include <vector>
@@ -13,13 +13,13 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
-#include "content/child/blink_platform_impl.h"
-#include "content/child/web_socket_stream_handle_bridge.h"
-#include "content/child/web_socket_stream_handle_delegate.h"
#include "third_party/WebKit/public/platform/WebData.h"
#include "third_party/WebKit/public/platform/WebSocketStreamError.h"
#include "third_party/WebKit/public/platform/WebSocketStreamHandleClient.h"
#include "third_party/WebKit/public/platform/WebURL.h"
+#include "webkit/child/webkitplatformsupport_impl.h"
+#include "webkit/child/websocketstreamhandle_bridge.h"
+#include "webkit/child/websocketstreamhandle_delegate.h"
using blink::WebData;
using blink::WebSocketStreamError;
@@ -27,7 +27,7 @@ using blink::WebSocketStreamHandle;
using blink::WebSocketStreamHandleClient;
using blink::WebURL;
-namespace content {
+namespace webkit_glue {
// WebSocketStreamHandleImpl::Context -----------------------------------------
@@ -42,7 +42,7 @@ class WebSocketStreamHandleImpl::Context
client_ = client;
}
- void Connect(const WebURL& url, BlinkPlatformImpl* platform);
+ void Connect(const WebURL& url, WebKitPlatformSupportImpl* platform);
bool Send(const WebData& data);
void Close();
@@ -83,8 +83,9 @@ WebSocketStreamHandleImpl::Context::Context(WebSocketStreamHandleImpl* handle)
client_(NULL) {
}
-void WebSocketStreamHandleImpl::Context::Connect(const WebURL& url,
- BlinkPlatformImpl* platform) {
+void WebSocketStreamHandleImpl::Context::Connect(
+ const WebURL& url,
+ WebKitPlatformSupportImpl* platform) {
VLOG(1) << "Connect url=" << url;
DCHECK(!bridge_.get());
bridge_ = platform->CreateWebSocketStreamBridge(handle_, this);
@@ -164,7 +165,7 @@ void WebSocketStreamHandleImpl::Context::DidFail(
// WebSocketStreamHandleImpl ------------------------------------------------
WebSocketStreamHandleImpl::WebSocketStreamHandleImpl(
- BlinkPlatformImpl* platform)
+ WebKitPlatformSupportImpl* platform)
: context_(new Context(this)),
platform_(platform) {
}
@@ -193,4 +194,4 @@ void WebSocketStreamHandleImpl::close() {
context_->Close();
}
-} // namespace content
+} // namespace webkit_glue
« no previous file with comments | « webkit/child/websocketstreamhandle_impl.h ('k') | webkit/child/weburlloader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698