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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 } else { | 258 } else { |
259 DVLOG(1) << "Disabling sandbox support for testing."; | 259 DVLOG(1) << "Disabling sandbox support for testing."; |
260 } | 260 } |
261 #endif | 261 #endif |
262 | 262 |
263 // ChildThread may not exist in some tests. | 263 // ChildThread may not exist in some tests. |
264 if (ChildThreadImpl::current()) { | 264 if (ChildThreadImpl::current()) { |
265 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); | 265 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
266 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); | 266 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
267 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); | 267 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
268 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 268 blob_registry_.reset(new WebBlobRegistryImpl( |
| 269 RenderThreadImpl::current()->GetIOMessageLoopProxy().get(), |
| 270 thread_safe_sender_.get())); |
269 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 271 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); |
270 web_database_observer_impl_.reset( | 272 web_database_observer_impl_.reset( |
271 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 273 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
272 } | 274 } |
273 } | 275 } |
274 | 276 |
275 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 277 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
276 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 278 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
277 } | 279 } |
278 | 280 |
(...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1300 //------------------------------------------------------------------------------ | 1302 //------------------------------------------------------------------------------ |
1301 | 1303 |
1302 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1304 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
1303 const blink::WebBatteryStatus& status) { | 1305 const blink::WebBatteryStatus& status) { |
1304 if (!g_test_battery_status_listener) | 1306 if (!g_test_battery_status_listener) |
1305 return; | 1307 return; |
1306 g_test_battery_status_listener->updateBatteryStatus(status); | 1308 g_test_battery_status_listener->updateBatteryStatus(status); |
1307 } | 1309 } |
1308 | 1310 |
1309 } // namespace content | 1311 } // namespace content |
OLD | NEW |