| OLD | NEW |
| 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_impl.h" | 5 #include "content/renderer/render_view_impl.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 #include "content/public/common/url_constants.h" | 43 #include "content/public/common/url_constants.h" |
| 44 #include "content/public/renderer/content_renderer_client.h" | 44 #include "content/public/renderer/content_renderer_client.h" |
| 45 #include "content/public/renderer/navigation_state.h" | 45 #include "content/public/renderer/navigation_state.h" |
| 46 #include "content/public/renderer/render_view_observer.h" | 46 #include "content/public/renderer/render_view_observer.h" |
| 47 #include "content/public/renderer/render_view_visitor.h" | 47 #include "content/public/renderer/render_view_visitor.h" |
| 48 #include "content/renderer/device_orientation_dispatcher.h" | 48 #include "content/renderer/device_orientation_dispatcher.h" |
| 49 #include "content/renderer/devtools_agent.h" | 49 #include "content/renderer/devtools_agent.h" |
| 50 #include "content/renderer/external_popup_menu.h" | 50 #include "content/renderer/external_popup_menu.h" |
| 51 #include "content/renderer/geolocation_dispatcher.h" | 51 #include "content/renderer/geolocation_dispatcher.h" |
| 52 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" | 52 #include "content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h" |
| 53 #include "content/renderer/idle_user_detector.h" |
| 53 #include "content/renderer/intents_dispatcher.h" | 54 #include "content/renderer/intents_dispatcher.h" |
| 54 #include "content/renderer/java_bridge_dispatcher.h" | 55 #include "content/renderer/java_bridge_dispatcher.h" |
| 55 #include "content/renderer/load_progress_tracker.h" | 56 #include "content/renderer/load_progress_tracker.h" |
| 56 #include "content/renderer/media/audio_message_filter.h" | 57 #include "content/renderer/media/audio_message_filter.h" |
| 57 #include "content/renderer/media/audio_renderer_impl.h" | 58 #include "content/renderer/media/audio_renderer_impl.h" |
| 58 #include "content/renderer/media/media_stream_impl.h" | 59 #include "content/renderer/media/media_stream_impl.h" |
| 59 #include "content/renderer/media/render_media_log.h" | 60 #include "content/renderer/media/render_media_log.h" |
| 60 #include "content/renderer/mhtml_generator.h" | 61 #include "content/renderer/mhtml_generator.h" |
| 61 #include "content/renderer/notification_provider.h" | 62 #include "content/renderer/notification_provider.h" |
| 62 #include "content/renderer/p2p/socket_dispatcher.h" | 63 #include "content/renderer/p2p/socket_dispatcher.h" |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 401 |
| 401 new MHTMLGenerator(this); | 402 new MHTMLGenerator(this); |
| 402 #if defined(OS_MACOSX) | 403 #if defined(OS_MACOSX) |
| 403 new TextInputClientObserver(this); | 404 new TextInputClientObserver(this); |
| 404 #endif // defined(OS_MACOSX) | 405 #endif // defined(OS_MACOSX) |
| 405 | 406 |
| 406 devtools_agent_ = new DevToolsAgent(this); | 407 devtools_agent_ = new DevToolsAgent(this); |
| 407 | 408 |
| 408 renderer_accessibility_ = new RendererAccessibility(this); | 409 renderer_accessibility_ = new RendererAccessibility(this); |
| 409 | 410 |
| 411 new IdleUserDetector(this); |
| 412 |
| 410 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 413 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 411 if (command_line.HasSwitch(switches::kEnableMediaStream)) { | 414 if (command_line.HasSwitch(switches::kEnableMediaStream)) { |
| 412 media_stream_impl_ = new MediaStreamImpl( | 415 media_stream_impl_ = new MediaStreamImpl( |
| 413 RenderThreadImpl::current()->video_capture_impl_manager()); | 416 RenderThreadImpl::current()->video_capture_impl_manager()); |
| 414 } | 417 } |
| 415 | 418 |
| 416 content::GetContentClient()->renderer()->RenderViewCreated(this); | 419 content::GetContentClient()->renderer()->RenderViewCreated(this); |
| 417 } | 420 } |
| 418 | 421 |
| 419 RenderViewImpl::~RenderViewImpl() { | 422 RenderViewImpl::~RenderViewImpl() { |
| (...skipping 4284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4704 return webview()->settings()->useThreadedCompositor(); | 4707 return webview()->settings()->useThreadedCompositor(); |
| 4705 } | 4708 } |
| 4706 | 4709 |
| 4707 void RenderViewImpl::OnJavaBridgeInit( | 4710 void RenderViewImpl::OnJavaBridgeInit( |
| 4708 const IPC::ChannelHandle& channel_handle) { | 4711 const IPC::ChannelHandle& channel_handle) { |
| 4709 DCHECK(!java_bridge_dispatcher_.get()); | 4712 DCHECK(!java_bridge_dispatcher_.get()); |
| 4710 #if defined(ENABLE_JAVA_BRIDGE) | 4713 #if defined(ENABLE_JAVA_BRIDGE) |
| 4711 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); | 4714 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this, channel_handle)); |
| 4712 #endif | 4715 #endif |
| 4713 } | 4716 } |
| OLD | NEW |