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/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 plugin_refresh_allowed_(true), | 238 plugin_refresh_allowed_(true), |
239 default_task_runner_(renderer_scheduler->DefaultTaskRunner()), | 239 default_task_runner_(renderer_scheduler->DefaultTaskRunner()), |
240 web_scrollbar_behavior_(new WebScrollbarBehaviorImpl) { | 240 web_scrollbar_behavior_(new WebScrollbarBehaviorImpl) { |
241 if (g_sandbox_enabled && sandboxEnabled()) { | 241 if (g_sandbox_enabled && sandboxEnabled()) { |
242 sandbox_support_.reset(new RendererBlinkPlatformImpl::SandboxSupport); | 242 sandbox_support_.reset(new RendererBlinkPlatformImpl::SandboxSupport); |
243 } else { | 243 } else { |
244 DVLOG(1) << "Disabling sandbox support for testing."; | 244 DVLOG(1) << "Disabling sandbox support for testing."; |
245 } | 245 } |
246 | 246 |
247 // ChildThread may not exist in some tests. | 247 // ChildThread may not exist in some tests. |
248 if (ChildThread::current()) { | 248 if (ChildThreadImpl::current()) { |
249 sync_message_filter_ = ChildThread::current()->sync_message_filter(); | 249 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
250 thread_safe_sender_ = ChildThread::current()->thread_safe_sender(); | 250 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
251 quota_message_filter_ = ChildThread::current()->quota_message_filter(); | 251 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
252 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 252 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); |
253 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 253 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); |
254 web_database_observer_impl_.reset( | 254 web_database_observer_impl_.reset( |
255 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 255 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
256 } | 256 } |
257 } | 257 } |
258 | 258 |
259 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 259 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
260 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 260 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
261 } | 261 } |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1224 //------------------------------------------------------------------------------ | 1224 //------------------------------------------------------------------------------ |
1225 | 1225 |
1226 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1226 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
1227 const blink::WebBatteryStatus& status) { | 1227 const blink::WebBatteryStatus& status) { |
1228 if (!g_test_battery_status_listener) | 1228 if (!g_test_battery_status_listener) |
1229 return; | 1229 return; |
1230 g_test_battery_status_listener->updateBatteryStatus(status); | 1230 g_test_battery_status_listener->updateBatteryStatus(status); |
1231 } | 1231 } |
1232 | 1232 |
1233 } // namespace content | 1233 } // namespace content |
OLD | NEW |