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 #include "content/renderer/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 #include "ipc/ipc_channel_mojo.h" | 132 #include "ipc/ipc_channel_mojo.h" |
133 #include "ipc/ipc_platform_file.h" | 133 #include "ipc/ipc_platform_file.h" |
134 #include "media/base/media.h" | 134 #include "media/base/media.h" |
135 #include "media/renderers/gpu_video_accelerator_factories.h" | 135 #include "media/renderers/gpu_video_accelerator_factories.h" |
136 #include "mojo/common/common_type_converters.h" | 136 #include "mojo/common/common_type_converters.h" |
137 #include "mojo/public/cpp/bindings/strong_binding.h" | 137 #include "mojo/public/cpp/bindings/strong_binding.h" |
138 #include "net/base/net_errors.h" | 138 #include "net/base/net_errors.h" |
139 #include "net/base/port_util.h" | 139 #include "net/base/port_util.h" |
140 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" | 140 #include "net/base/registry_controlled_domains/registry_controlled_domain.h" |
141 #include "net/base/url_util.h" | 141 #include "net/base/url_util.h" |
| 142 #include "ppapi/features/features.h" |
142 #include "services/service_manager/public/cpp/interface_provider.h" | 143 #include "services/service_manager/public/cpp/interface_provider.h" |
143 #include "services/service_manager/public/cpp/interface_registry.h" | 144 #include "services/service_manager/public/cpp/interface_registry.h" |
144 #include "skia/ext/event_tracer_impl.h" | 145 #include "skia/ext/event_tracer_impl.h" |
145 #include "skia/ext/skia_memory_dump_provider.h" | 146 #include "skia/ext/skia_memory_dump_provider.h" |
146 #include "third_party/WebKit/public/platform/WebImageGenerator.h" | 147 #include "third_party/WebKit/public/platform/WebImageGenerator.h" |
147 #include "third_party/WebKit/public/platform/WebMemoryCoordinator.h" | 148 #include "third_party/WebKit/public/platform/WebMemoryCoordinator.h" |
148 #include "third_party/WebKit/public/platform/WebString.h" | 149 #include "third_party/WebKit/public/platform/WebString.h" |
149 #include "third_party/WebKit/public/platform/WebThread.h" | 150 #include "third_party/WebKit/public/platform/WebThread.h" |
150 #include "third_party/WebKit/public/platform/scheduler/child/compositor_worker_s
cheduler.h" | 151 #include "third_party/WebKit/public/platform/scheduler/child/compositor_worker_s
cheduler.h" |
151 #include "third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_
worker_scheduler.h" | 152 #include "third_party/WebKit/public/platform/scheduler/child/webthread_impl_for_
worker_scheduler.h" |
(...skipping 2065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2217 const std::string& highlight_color) { | 2218 const std::string& highlight_color) { |
2218 #if defined(OS_MACOSX) | 2219 #if defined(OS_MACOSX) |
2219 SystemColorsDidChange(aqua_color_variant, highlight_text_color, | 2220 SystemColorsDidChange(aqua_color_variant, highlight_text_color, |
2220 highlight_color); | 2221 highlight_color); |
2221 #else | 2222 #else |
2222 NOTREACHED(); | 2223 NOTREACHED(); |
2223 #endif | 2224 #endif |
2224 } | 2225 } |
2225 | 2226 |
2226 void RenderThreadImpl::PurgePluginListCache(bool reload_pages) { | 2227 void RenderThreadImpl::PurgePluginListCache(bool reload_pages) { |
2227 #if defined(ENABLE_PLUGINS) | 2228 #if BUILDFLAG(ENABLE_PLUGINS) |
2228 // The call below will cause a GetPlugins call with refresh=true, but at this | 2229 // The call below will cause a GetPlugins call with refresh=true, but at this |
2229 // point we already know that the browser has refreshed its list, so disable | 2230 // point we already know that the browser has refreshed its list, so disable |
2230 // refresh temporarily to prevent each renderer process causing the list to be | 2231 // refresh temporarily to prevent each renderer process causing the list to be |
2231 // regenerated. | 2232 // regenerated. |
2232 blink_platform_impl_->set_plugin_refresh_allowed(false); | 2233 blink_platform_impl_->set_plugin_refresh_allowed(false); |
2233 blink::resetPluginCache(reload_pages); | 2234 blink::resetPluginCache(reload_pages); |
2234 blink_platform_impl_->set_plugin_refresh_allowed(true); | 2235 blink_platform_impl_->set_plugin_refresh_allowed(true); |
2235 | 2236 |
2236 for (auto& observer : observers_) | 2237 for (auto& observer : observers_) |
2237 observer.PluginListChanged(); | 2238 observer.PluginListChanged(); |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2477 } | 2478 } |
2478 } | 2479 } |
2479 | 2480 |
2480 void RenderThreadImpl::OnRendererInterfaceRequest( | 2481 void RenderThreadImpl::OnRendererInterfaceRequest( |
2481 mojom::RendererAssociatedRequest request) { | 2482 mojom::RendererAssociatedRequest request) { |
2482 DCHECK(!renderer_binding_.is_bound()); | 2483 DCHECK(!renderer_binding_.is_bound()); |
2483 renderer_binding_.Bind(std::move(request)); | 2484 renderer_binding_.Bind(std::move(request)); |
2484 } | 2485 } |
2485 | 2486 |
2486 } // namespace content | 2487 } // namespace content |
OLD | NEW |