| 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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 956 | 956 |
| 957 // Allow calling this from the compositor thread. | 957 // Allow calling this from the compositor thread. |
| 958 if (MessageLoop::current() == message_loop()) | 958 if (MessageLoop::current() == message_loop()) |
| 959 ChildThread::Send(message); | 959 ChildThread::Send(message); |
| 960 else | 960 else |
| 961 sync_message_filter()->Send(message); | 961 sync_message_filter()->Send(message); |
| 962 | 962 |
| 963 return route_id; | 963 return route_id; |
| 964 } | 964 } |
| 965 | 965 |
| 966 void RenderThreadImpl::CreateImage( |
| 967 gfx::PluginWindowHandle window, |
| 968 int32 image_id, |
| 969 const CreateImageCallback& callback) { |
| 970 NOTREACHED(); |
| 971 } |
| 972 |
| 973 void RenderThreadImpl::DeleteImage(int32 image_id, int32 sync_point) { |
| 974 NOTREACHED(); |
| 975 } |
| 976 |
| 966 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { | 977 void RenderThreadImpl::DoNotSuspendWebKitSharedTimer() { |
| 967 suspend_webkit_shared_timer_ = false; | 978 suspend_webkit_shared_timer_ = false; |
| 968 } | 979 } |
| 969 | 980 |
| 970 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { | 981 void RenderThreadImpl::DoNotNotifyWebKitOfModalLoop() { |
| 971 notify_webkit_of_modal_loop_ = false; | 982 notify_webkit_of_modal_loop_ = false; |
| 972 } | 983 } |
| 973 | 984 |
| 974 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& host, | 985 void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const std::string& host, |
| 975 double zoom_level) { | 986 double zoom_level) { |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1151 | 1162 |
| 1152 scoped_refptr<base::MessageLoopProxy> | 1163 scoped_refptr<base::MessageLoopProxy> |
| 1153 RenderThreadImpl::GetFileThreadMessageLoopProxy() { | 1164 RenderThreadImpl::GetFileThreadMessageLoopProxy() { |
| 1154 DCHECK(message_loop() == MessageLoop::current()); | 1165 DCHECK(message_loop() == MessageLoop::current()); |
| 1155 if (!file_thread_.get()) { | 1166 if (!file_thread_.get()) { |
| 1156 file_thread_.reset(new base::Thread("Renderer::FILE")); | 1167 file_thread_.reset(new base::Thread("Renderer::FILE")); |
| 1157 file_thread_->Start(); | 1168 file_thread_->Start(); |
| 1158 } | 1169 } |
| 1159 return file_thread_->message_loop_proxy(); | 1170 return file_thread_->message_loop_proxy(); |
| 1160 } | 1171 } |
| OLD | NEW |