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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 #endif | 274 #endif |
275 | 275 |
276 // ChildThread may not exist in some tests. | 276 // ChildThread may not exist in some tests. |
277 if (ChildThreadImpl::current()) { | 277 if (ChildThreadImpl::current()) { |
278 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); | 278 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
279 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); | 279 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
280 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); | 280 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
281 blob_registry_.reset(new WebBlobRegistryImpl( | 281 blob_registry_.reset(new WebBlobRegistryImpl( |
282 RenderThreadImpl::current()->GetIOTaskRunner().get(), | 282 RenderThreadImpl::current()->GetIOTaskRunner().get(), |
283 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); | 283 base::ThreadTaskRunnerHandle::Get(), thread_safe_sender_.get())); |
284 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 284 web_idb_factory_.reset(new WebIDBFactoryImpl( |
| 285 sync_message_filter_, thread_safe_sender_, |
| 286 RenderThreadImpl::current()->GetIOTaskRunner().get())); |
285 web_database_observer_impl_.reset( | 287 web_database_observer_impl_.reset( |
286 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 288 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
287 } | 289 } |
288 | 290 |
289 top_level_blame_context_.Initialize(); | 291 top_level_blame_context_.Initialize(); |
290 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); | 292 renderer_scheduler_->SetTopLevelBlameContext(&top_level_blame_context_); |
291 } | 293 } |
292 | 294 |
293 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 295 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
294 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 296 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
(...skipping 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1336 return &trial_token_validator_; | 1338 return &trial_token_validator_; |
1337 } | 1339 } |
1338 | 1340 |
1339 void RendererBlinkPlatformImpl::workerContextCreated( | 1341 void RendererBlinkPlatformImpl::workerContextCreated( |
1340 const v8::Local<v8::Context>& worker) { | 1342 const v8::Local<v8::Context>& worker) { |
1341 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1343 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
1342 worker); | 1344 worker); |
1343 } | 1345 } |
1344 | 1346 |
1345 } // namespace content | 1347 } // namespace content |
OLD | NEW |