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

Unified Diff: chrome/renderer/render_view.cc

Issue 6602039: P2P sockets IPC dispatcher for the renderer side. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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 | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc
index a94e122cd62dcc9f8da0cc1643b49e1f41675d17..576063fbcb3f99eb9b5e018d49b4ed5f11b9cdc0 100644
--- a/chrome/renderer/render_view.cc
+++ b/chrome/renderer/render_view.cc
@@ -75,6 +75,7 @@
#include "chrome/renderer/media/ipc_video_decoder.h"
#include "chrome/renderer/navigation_state.h"
#include "chrome/renderer/notification_provider.h"
+#include "chrome/renderer/p2p/socket_dispatcher.h"
#include "chrome/renderer/page_click_tracker.h"
#include "chrome/renderer/page_load_histograms.h"
#include "chrome/renderer/plugin_channel_host.h"
@@ -589,6 +590,7 @@ RenderView::RenderView(RenderThreadBase* render_thread,
searchbox_(NULL),
spellcheck_provider_(NULL),
accessibility_ack_pending_(false),
+ p2p_socket_dispatcher_(NULL),
pending_app_icon_requests_(0),
session_storage_namespace_id_(session_storage_namespace_id) {
#if defined(OS_MACOSX)
@@ -671,6 +673,11 @@ RenderView::RenderView(RenderThreadBase* render_thread,
spellcheck_provider_ = new SpellCheckProvider(this, spellcheck);
if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableP2PApi)) {
+ p2p_socket_dispatcher_ = new P2PSocketDispatcher(this);
+ }
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableClientSidePhishingDetection)) {
new safe_browsing::PhishingClassifierDelegate(this, NULL);
}
« no previous file with comments | « chrome/renderer/render_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698