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 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1941 return media_stream_center_; | 1941 return media_stream_center_; |
1942 } | 1942 } |
1943 | 1943 |
1944 #if defined(ENABLE_WEBRTC) | 1944 #if defined(ENABLE_WEBRTC) |
1945 PeerConnectionDependencyFactory* | 1945 PeerConnectionDependencyFactory* |
1946 RenderThreadImpl::GetPeerConnectionDependencyFactory() { | 1946 RenderThreadImpl::GetPeerConnectionDependencyFactory() { |
1947 return peer_connection_factory_.get(); | 1947 return peer_connection_factory_.get(); |
1948 } | 1948 } |
1949 #endif | 1949 #endif |
1950 | 1950 |
| 1951 mojom::RenderFrameMessageFilter* |
| 1952 RenderThreadImpl::render_frame_message_filter() { |
| 1953 if (!render_frame_message_filter_) |
| 1954 GetChannel()->GetRemoteAssociatedInterface(&render_frame_message_filter_); |
| 1955 return render_frame_message_filter_.get(); |
| 1956 } |
| 1957 |
1951 gpu::GpuChannelHost* RenderThreadImpl::GetGpuChannel() { | 1958 gpu::GpuChannelHost* RenderThreadImpl::GetGpuChannel() { |
1952 if (!gpu_channel_) | 1959 if (!gpu_channel_) |
1953 return nullptr; | 1960 return nullptr; |
1954 if (gpu_channel_->IsLost()) | 1961 if (gpu_channel_->IsLost()) |
1955 return nullptr; | 1962 return nullptr; |
1956 return gpu_channel_.get(); | 1963 return gpu_channel_.get(); |
1957 } | 1964 } |
1958 | 1965 |
1959 #if defined(ENABLE_PLUGINS) | 1966 #if defined(ENABLE_PLUGINS) |
1960 void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) { | 1967 void RenderThreadImpl::OnPurgePluginListCache(bool reload_pages) { |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2223 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) | 2230 v8_memory_pressure_level == v8::MemoryPressureLevel::kCritical) |
2224 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; | 2231 v8_memory_pressure_level = v8::MemoryPressureLevel::kModerate; |
2225 | 2232 |
2226 blink::mainThreadIsolate()->MemoryPressureNotification( | 2233 blink::mainThreadIsolate()->MemoryPressureNotification( |
2227 v8_memory_pressure_level); | 2234 v8_memory_pressure_level); |
2228 blink::MemoryPressureNotificationToWorkerThreadIsolates( | 2235 blink::MemoryPressureNotificationToWorkerThreadIsolates( |
2229 v8_memory_pressure_level); | 2236 v8_memory_pressure_level); |
2230 } | 2237 } |
2231 | 2238 |
2232 } // namespace content | 2239 } // namespace content |
OLD | NEW |