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

Side by Side Diff: content/renderer/render_view.cc

Issue 7715020: Move P2P code to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view.h ('k') | remoting/client/ipc_host_resolver.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "content/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 409
410 OnSetRendererPrefs(renderer_prefs); 410 OnSetRendererPrefs(renderer_prefs);
411 411
412 host_window_ = parent_hwnd; 412 host_window_ = parent_hwnd;
413 413
414 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 414 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
415 if (command_line.HasSwitch(switches::kEnableAccessibility)) 415 if (command_line.HasSwitch(switches::kEnableAccessibility))
416 WebAccessibilityCache::enableAccessibility(); 416 WebAccessibilityCache::enableAccessibility();
417 417
418 #if defined(ENABLE_P2P_APIS) 418 #if defined(ENABLE_P2P_APIS)
419 p2p_socket_dispatcher_ = new P2PSocketDispatcher(this); 419 p2p_socket_dispatcher_ = new content::P2PSocketDispatcher(this);
420 #endif 420 #endif
421 421
422 new MHTMLGenerator(this); 422 new MHTMLGenerator(this);
423 423
424 devtools_agent_ = new DevToolsAgent(this); 424 devtools_agent_ = new DevToolsAgent(this);
425 425
426 if (command_line.HasSwitch(switches::kEnableMediaStream)) { 426 if (command_line.HasSwitch(switches::kEnableMediaStream)) {
427 media_stream_impl_ = new MediaStreamImpl( 427 media_stream_impl_ = new MediaStreamImpl(
428 RenderThread::current()->video_capture_impl_manager()); 428 RenderThread::current()->video_capture_impl_manager());
429 } 429 }
(...skipping 4152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4582 } 4582 }
4583 4583
4584 void RenderView::OnEnableViewSourceMode() { 4584 void RenderView::OnEnableViewSourceMode() {
4585 if (!webview()) 4585 if (!webview())
4586 return; 4586 return;
4587 WebFrame* main_frame = webview()->mainFrame(); 4587 WebFrame* main_frame = webview()->mainFrame();
4588 if (!main_frame) 4588 if (!main_frame)
4589 return; 4589 return;
4590 main_frame->enableViewSourceMode(true); 4590 main_frame->enableViewSourceMode(true);
4591 } 4591 }
4592
OLDNEW
« no previous file with comments | « content/renderer/render_view.h ('k') | remoting/client/ipc_host_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698