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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // ChildThread may not exist in some tests. | 277 // ChildThread may not exist in some tests. |
278 if (ChildThreadImpl::current()) { | 278 if (ChildThreadImpl::current()) { |
279 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); | 279 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
280 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); | 280 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
281 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); | 281 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
282 shared_bitmap_manager_ = | 282 shared_bitmap_manager_ = |
283 ChildThreadImpl::current()->shared_bitmap_manager(); | 283 ChildThreadImpl::current()->shared_bitmap_manager(); |
284 blob_registry_.reset(new WebBlobRegistryImpl( | 284 blob_registry_.reset(new WebBlobRegistryImpl( |
285 RenderThreadImpl::current()->GetIOTaskRunner().get(), | 285 RenderThreadImpl::current()->GetIOTaskRunner().get(), |
286 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); | 286 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); |
287 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 287 web_idb_factory_.reset(new WebIDBFactoryImpl( |
| 288 sync_message_filter_, thread_safe_sender_, |
| 289 RenderThreadImpl::current()->GetIOTaskRunner().get())); |
288 web_database_observer_impl_.reset( | 290 web_database_observer_impl_.reset( |
289 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 291 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
290 } | 292 } |
291 | 293 |
292 top_level_blame_context_.Initialize(); | 294 top_level_blame_context_.Initialize(); |
293 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); | 295 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); |
294 } | 296 } |
295 | 297 |
296 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 298 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
297 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 299 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
(...skipping 1054 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1352 return &trial_token_validator_; | 1354 return &trial_token_validator_; |
1353 } | 1355 } |
1354 | 1356 |
1355 void RendererBlinkPlatformImpl::workerContextCreated( | 1357 void RendererBlinkPlatformImpl::workerContextCreated( |
1356 const v8::Local<v8::Context>& worker) { | 1358 const v8::Local<v8::Context>& worker) { |
1357 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1359 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
1358 worker); | 1360 worker); |
1359 } | 1361 } |
1360 | 1362 |
1361 } // namespace content | 1363 } // namespace content |
OLD | NEW |