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 <vector> | 10 #include <vector> |
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
841 } else { | 841 } else { |
842 webkit_platform_support_->ResumeSharedTimer(); | 842 webkit_platform_support_->ResumeSharedTimer(); |
843 } | 843 } |
844 } | 844 } |
845 } | 845 } |
846 | 846 |
847 void RenderThreadImpl::UpdateHistograms(int sequence_number) { | 847 void RenderThreadImpl::UpdateHistograms(int sequence_number) { |
848 child_histogram_message_filter()->SendHistograms(sequence_number); | 848 child_histogram_message_filter()->SendHistograms(sequence_number); |
849 } | 849 } |
850 | 850 |
| 851 bool RenderThreadImpl::ResolveProxy(const GURL& url, std::string* proxy_list) { |
| 852 bool result = false; |
| 853 Send(new ViewHostMsg_ResolveProxy(url, &result, proxy_list)); |
| 854 return result; |
| 855 } |
| 856 |
851 void RenderThreadImpl::PostponeIdleNotification() { | 857 void RenderThreadImpl::PostponeIdleNotification() { |
852 idle_notifications_to_skip_ = 2; | 858 idle_notifications_to_skip_ = 2; |
853 } | 859 } |
854 | 860 |
855 /* static */ | 861 /* static */ |
856 void RenderThreadImpl::OnGpuVDAContextLoss() { | 862 void RenderThreadImpl::OnGpuVDAContextLoss() { |
857 RenderThreadImpl* self = RenderThreadImpl::current(); | 863 RenderThreadImpl* self = RenderThreadImpl::current(); |
858 DCHECK(self); | 864 DCHECK(self); |
859 if (!self->gpu_vda_context3d_.get()) | 865 if (!self->gpu_vda_context3d_.get()) |
860 return; | 866 return; |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1137 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1143 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
1138 DCHECK(message_loop() == MessageLoop::current()); | 1144 DCHECK(message_loop() == MessageLoop::current()); |
1139 if (!file_thread_.get()) { | 1145 if (!file_thread_.get()) { |
1140 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1146 file_thread_.reset(new base::Thread("Renderer::FILE")); |
1141 file_thread_->Start(); | 1147 file_thread_->Start(); |
1142 } | 1148 } |
1143 return file_thread_->message_loop_proxy(); | 1149 return file_thread_->message_loop_proxy(); |
1144 } | 1150 } |
1145 | 1151 |
1146 } // namespace content | 1152 } // namespace content |
OLD | NEW |