| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 #include "gpu/command_buffer/service/gpu_switches.h" | 150 #include "gpu/command_buffer/service/gpu_switches.h" |
| 151 #include "ipc/ipc_channel.h" | 151 #include "ipc/ipc_channel.h" |
| 152 #include "ipc/ipc_logging.h" | 152 #include "ipc/ipc_logging.h" |
| 153 #include "ipc/ipc_switches.h" | 153 #include "ipc/ipc_switches.h" |
| 154 #include "ipc/mojo/ipc_channel_mojo.h" | 154 #include "ipc/mojo/ipc_channel_mojo.h" |
| 155 #include "ipc/mojo/ipc_channel_mojo_host.h" | 155 #include "ipc/mojo/ipc_channel_mojo_host.h" |
| 156 #include "media/base/media_switches.h" | 156 #include "media/base/media_switches.h" |
| 157 #include "net/url_request/url_request_context_getter.h" | 157 #include "net/url_request/url_request_context_getter.h" |
| 158 #include "ppapi/shared_impl/ppapi_switches.h" | 158 #include "ppapi/shared_impl/ppapi_switches.h" |
| 159 #include "storage/browser/fileapi/sandbox_file_system_backend.h" | 159 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 160 #include "third_party/icu/source/common/unicode/unistr.h" |
| 161 #include "third_party/icu/source/i18n/unicode/timezone.h" |
| 160 #include "third_party/skia/include/core/SkBitmap.h" | 162 #include "third_party/skia/include/core/SkBitmap.h" |
| 161 #include "ui/base/ui_base_switches.h" | 163 #include "ui/base/ui_base_switches.h" |
| 162 #include "ui/events/event_switches.h" | 164 #include "ui/events/event_switches.h" |
| 163 #include "ui/gfx/switches.h" | 165 #include "ui/gfx/switches.h" |
| 164 #include "ui/gl/gl_switches.h" | 166 #include "ui/gl/gl_switches.h" |
| 165 #include "ui/gl/gpu_switching_manager.h" | 167 #include "ui/gl/gpu_switching_manager.h" |
| 166 #include "ui/native_theme/native_theme_switches.h" | 168 #include "ui/native_theme/native_theme_switches.h" |
| 167 | 169 |
| 168 #if defined(OS_ANDROID) | 170 #if defined(OS_ANDROID) |
| 169 #include "content/browser/android/child_process_launcher_android.h" | 171 #include "content/browser/android/child_process_launcher_android.h" |
| (...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 961 void RenderProcessHostImpl::ResumeDeferredNavigation( | 963 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 962 const GlobalRequestID& request_id) { | 964 const GlobalRequestID& request_id) { |
| 963 widget_helper_->ResumeDeferredNavigation(request_id); | 965 widget_helper_->ResumeDeferredNavigation(request_id); |
| 964 } | 966 } |
| 965 | 967 |
| 966 void RenderProcessHostImpl::ResumeResponseDeferredAtStart( | 968 void RenderProcessHostImpl::ResumeResponseDeferredAtStart( |
| 967 const GlobalRequestID& request_id) { | 969 const GlobalRequestID& request_id) { |
| 968 widget_helper_->ResumeResponseDeferredAtStart(request_id); | 970 widget_helper_->ResumeResponseDeferredAtStart(request_id); |
| 969 } | 971 } |
| 970 | 972 |
| 971 void RenderProcessHostImpl::NotifyTimezoneChange() { | 973 void RenderProcessHostImpl::NotifyTimezoneChange(const std::string& zone_id) { |
| 972 Send(new ViewMsg_TimezoneChange()); | 974 Send(new ViewMsg_TimezoneChange(zone_id)); |
| 973 } | 975 } |
| 974 | 976 |
| 975 ServiceRegistry* RenderProcessHostImpl::GetServiceRegistry() { | 977 ServiceRegistry* RenderProcessHostImpl::GetServiceRegistry() { |
| 976 DCHECK(mojo_application_host_); | 978 DCHECK(mojo_application_host_); |
| 977 return mojo_application_host_->service_registry(); | 979 return mojo_application_host_->service_registry(); |
| 978 } | 980 } |
| 979 | 981 |
| 980 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() | 982 const base::TimeTicks& RenderProcessHostImpl::GetInitTimeForNavigationMetrics() |
| 981 const { | 983 const { |
| 982 return init_time_; | 984 return init_time_; |
| (...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2484 if (worker_ref_count_ == 0) | 2486 if (worker_ref_count_ == 0) |
| 2485 Cleanup(); | 2487 Cleanup(); |
| 2486 } | 2488 } |
| 2487 | 2489 |
| 2488 void RenderProcessHostImpl::GetAudioOutputControllers( | 2490 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2489 const GetAudioOutputControllersCallback& callback) const { | 2491 const GetAudioOutputControllersCallback& callback) const { |
| 2490 audio_renderer_host()->GetOutputControllers(callback); | 2492 audio_renderer_host()->GetOutputControllers(callback); |
| 2491 } | 2493 } |
| 2492 | 2494 |
| 2493 } // namespace content | 2495 } // namespace content |
| OLD | NEW |