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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } else { | 255 } else { |
256 DVLOG(1) << "Disabling sandbox support for testing."; | 256 DVLOG(1) << "Disabling sandbox support for testing."; |
257 } | 257 } |
258 #endif | 258 #endif |
259 | 259 |
260 // ChildThread may not exist in some tests. | 260 // ChildThread may not exist in some tests. |
261 if (ChildThreadImpl::current()) { | 261 if (ChildThreadImpl::current()) { |
262 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); | 262 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
263 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); | 263 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
264 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); | 264 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
265 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 265 blob_registry_.reset(new WebBlobRegistryImpl( |
| 266 RenderThreadImpl::current()->GetIOMessageLoopProxy().get(), |
| 267 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); |
266 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 268 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); |
267 web_database_observer_impl_.reset( | 269 web_database_observer_impl_.reset( |
268 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 270 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
269 } | 271 } |
270 } | 272 } |
271 | 273 |
272 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 274 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
273 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 275 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
274 } | 276 } |
275 | 277 |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 } | 1268 } |
1267 | 1269 |
1268 //------------------------------------------------------------------------------ | 1270 //------------------------------------------------------------------------------ |
1269 | 1271 |
1270 blink::WebTrialTokenValidator* | 1272 blink::WebTrialTokenValidator* |
1271 RendererBlinkPlatformImpl::trialTokenValidator() { | 1273 RendererBlinkPlatformImpl::trialTokenValidator() { |
1272 return &trial_token_validator_; | 1274 return &trial_token_validator_; |
1273 } | 1275 } |
1274 | 1276 |
1275 } // namespace content | 1277 } // namespace content |
OLD | NEW |