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