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

Unified Diff: content/renderer/websocketstreamhandle_impl_extradata_impl.h

Issue 9677031: Bind RenderViewImpl routing_id to SocketStreamHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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
Index: content/renderer/websocketstreamhandle_impl_extradata_impl.h
diff --git a/content/renderer/websocketstreamhandle_impl_extradata_impl.h b/content/renderer/websocketstreamhandle_impl_extradata_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..c5ff774ee19d54bef49a13efaa1f75da2e712d84
--- /dev/null
+++ b/content/renderer/websocketstreamhandle_impl_extradata_impl.h
@@ -0,0 +1,29 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_WEBSOCKETSTREAMHANDLE_IMPL_EXTRADATA_IMPL_H_
+#define CONTENT_RENDERER_WEBSOCKETSTREAMHANDLE_IMPL_EXTRADATA_IMPL_H_
+#pragma once
+
+#include "webkit/glue/websocketstreamhandle_impl.h"
+
+// Chrome's implementation of the "extra data" stored in each
+// WebSocketStreamHandleImpl.
+class WebSocketStreamHandleImplExtraDataImpl
darin (slow to review) 2012/03/19 20:58:28 nit: use a shorter name here? How about SocketHan
Takashi Toyoshima 2012/03/19 22:58:44 OK. I know that *SocketHandle exist in net/socket.
+ : public webkit_glue::WebSocketStreamHandleImpl::ExtraData {
+ public:
+ explicit WebSocketStreamHandleImplExtraDataImpl(int render_view_id)
+ : render_view_id_(render_view_id) {
+ }
+ virtual ~WebSocketStreamHandleImplExtraDataImpl() {}
+
+ int render_view_id() const { return render_view_id_; }
+
+ private:
+ int render_view_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebSocketStreamHandleImplExtraDataImpl);
+};
+
+#endif // CONTENT_RENDERER_WEBSOCKETSTREAMHANDLE_IMPL_EXTRADATA_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698