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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 6598053: P2P Sockets host implementation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
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/browser/about_flags.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/browser_render_process_host.cc
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index baba77e1eeaff4c3189be19ca1e9f02a137941e9..264875184de98f488631b1f553e60fbae9b57cc4 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -78,6 +78,7 @@
#include "content/browser/renderer_host/database_message_filter.h"
#include "content/browser/renderer_host/file_utilities_message_filter.h"
#include "content/browser/renderer_host/gpu_message_filter.h"
+#include "content/browser/renderer_host/p2p_sockets_host.h"
#include "content/browser/renderer_host/pepper_file_message_filter.h"
#include "content/browser/renderer_host/pepper_message_filter.h"
#include "content/browser/renderer_host/render_message_filter.h"
@@ -485,6 +486,9 @@ void BrowserRenderProcessHost::CreateMessageFilters() {
g_browser_process->resource_dispatcher_host(),
NewCallbackWithReturnValue(
widget_helper_.get(), &RenderWidgetHelper::GetNextRoutingID)));
+
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableP2PApi))
+ channel_->AddFilter(new P2PSocketsHost());
}
int BrowserRenderProcessHost::GetNextRoutingID() {
@@ -686,6 +690,7 @@ void BrowserRenderProcessHost::PropagateBrowserCommandLineToRenderer(
switches::kEnableLogging,
switches::kEnableNaCl,
switches::kEnableOpenMax,
+ switches::kEnableP2PApi,
switches::kEnablePepperTesting,
switches::kEnablePrintPreview,
switches::kEnableRemoting,
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698