| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" | 8 #include "chrome/browser/renderer_host/browser_render_process_host.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "chrome/browser/browser_child_process_host.h" | 30 #include "chrome/browser/browser_child_process_host.h" |
| 31 #include "chrome/browser/browser_process.h" | 31 #include "chrome/browser/browser_process.h" |
| 32 #include "chrome/browser/child_process_security_policy.h" | 32 #include "chrome/browser/child_process_security_policy.h" |
| 33 #include "chrome/browser/extensions/extension_event_router.h" | 33 #include "chrome/browser/extensions/extension_event_router.h" |
| 34 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 34 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 35 #include "chrome/browser/extensions/extension_message_service.h" | 35 #include "chrome/browser/extensions/extension_message_service.h" |
| 36 #include "chrome/browser/extensions/extensions_service.h" | 36 #include "chrome/browser/extensions/extensions_service.h" |
| 37 #include "chrome/browser/extensions/user_script_master.h" | 37 #include "chrome/browser/extensions/user_script_master.h" |
| 38 #include "chrome/browser/gpu_process_host.h" | 38 #include "chrome/browser/gpu_process_host.h" |
| 39 #include "chrome/browser/history/history.h" | 39 #include "chrome/browser/history/history.h" |
| 40 #include "chrome/browser/in_process_webkit/dom_storage_message_filter.h" |
| 40 #include "chrome/browser/io_thread.h" | 41 #include "chrome/browser/io_thread.h" |
| 41 #include "chrome/browser/platform_util.h" | 42 #include "chrome/browser/platform_util.h" |
| 42 #include "chrome/browser/plugin_service.h" | 43 #include "chrome/browser/plugin_service.h" |
| 43 #include "chrome/browser/profiles/profile.h" | 44 #include "chrome/browser/profiles/profile.h" |
| 44 #include "chrome/browser/renderer_host/audio_renderer_host.h" | 45 #include "chrome/browser/renderer_host/audio_renderer_host.h" |
| 45 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" | 46 #include "chrome/browser/renderer_host/pepper_file_message_filter.h" |
| 46 #include "chrome/browser/renderer_host/render_view_host.h" | 47 #include "chrome/browser/renderer_host/render_view_host.h" |
| 47 #include "chrome/browser/renderer_host/render_view_host_delegate.h" | 48 #include "chrome/browser/renderer_host/render_view_host_delegate.h" |
| 48 #include "chrome/browser/renderer_host/render_widget_helper.h" | 49 #include "chrome/browser/renderer_host/render_widget_helper.h" |
| 49 #include "chrome/browser/renderer_host/render_widget_host.h" | 50 #include "chrome/browser/renderer_host/render_widget_host.h" |
| (...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 id(), | 380 id(), |
| 380 PluginService::GetInstance(), | 381 PluginService::GetInstance(), |
| 381 g_browser_process->print_job_manager(), | 382 g_browser_process->print_job_manager(), |
| 382 profile(), | 383 profile(), |
| 383 widget_helper_)); | 384 widget_helper_)); |
| 384 channel_->AddFilter(resource_message_filter); | 385 channel_->AddFilter(resource_message_filter); |
| 385 | 386 |
| 386 channel_->AddFilter(new AudioRendererHost()); | 387 channel_->AddFilter(new AudioRendererHost()); |
| 387 channel_->AddFilter( | 388 channel_->AddFilter( |
| 388 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); | 389 new AppCacheDispatcherHost(profile()->GetRequestContext(), id())); |
| 390 channel_->AddFilter(new DOMStorageMessageFilter(id(), profile())); |
| 389 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); | 391 channel_->AddFilter(new PepperFileMessageFilter(id(), profile())); |
| 390 } | 392 } |
| 391 | 393 |
| 392 int BrowserRenderProcessHost::GetNextRoutingID() { | 394 int BrowserRenderProcessHost::GetNextRoutingID() { |
| 393 return widget_helper_->GetNextRoutingID(); | 395 return widget_helper_->GetNextRoutingID(); |
| 394 } | 396 } |
| 395 | 397 |
| 396 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { | 398 void BrowserRenderProcessHost::CancelResourceRequests(int render_widget_id) { |
| 397 widget_helper_->CancelResourceRequests(render_widget_id); | 399 widget_helper_->CancelResourceRequests(render_widget_id); |
| 398 } | 400 } |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 IPC::InvalidPlatformFileForTransit(), | 1173 IPC::InvalidPlatformFileForTransit(), |
| 1172 std::vector<std::string>(), | 1174 std::vector<std::string>(), |
| 1173 std::string(), | 1175 std::string(), |
| 1174 false)); | 1176 false)); |
| 1175 } | 1177 } |
| 1176 } | 1178 } |
| 1177 | 1179 |
| 1178 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { | 1180 void BrowserRenderProcessHost::EnableAutoSpellCorrect(bool enable) { |
| 1179 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); | 1181 Send(new ViewMsg_SpellChecker_EnableAutoSpellCorrect(enable)); |
| 1180 } | 1182 } |
| OLD | NEW |