| 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 } else { | 260 } else { |
| 261 DVLOG(1) << "Disabling sandbox support for testing."; | 261 DVLOG(1) << "Disabling sandbox support for testing."; |
| 262 } | 262 } |
| 263 #endif | 263 #endif |
| 264 | 264 |
| 265 // ChildThread may not exist in some tests. | 265 // ChildThread may not exist in some tests. |
| 266 if (ChildThreadImpl::current()) { | 266 if (ChildThreadImpl::current()) { |
| 267 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); | 267 sync_message_filter_ = ChildThreadImpl::current()->sync_message_filter(); |
| 268 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); | 268 thread_safe_sender_ = ChildThreadImpl::current()->thread_safe_sender(); |
| 269 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); | 269 quota_message_filter_ = ChildThreadImpl::current()->quota_message_filter(); |
| 270 blob_registry_.reset(new WebBlobRegistryImpl(thread_safe_sender_.get())); | 270 blob_registry_.reset(new WebBlobRegistryImpl( |
| 271 RenderThreadImpl::current()->GetIOMessageLoopProxy().get(), |
| 272 thread_safe_sender_.get())); |
| 271 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); | 273 web_idb_factory_.reset(new WebIDBFactoryImpl(thread_safe_sender_.get())); |
| 272 web_database_observer_impl_.reset( | 274 web_database_observer_impl_.reset( |
| 273 new WebDatabaseObserverImpl(sync_message_filter_.get())); | 275 new WebDatabaseObserverImpl(sync_message_filter_.get())); |
| 274 } | 276 } |
| 275 } | 277 } |
| 276 | 278 |
| 277 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { | 279 RendererBlinkPlatformImpl::~RendererBlinkPlatformImpl() { |
| 278 WebFileSystemImpl::DeleteThreadSpecificInstance(); | 280 WebFileSystemImpl::DeleteThreadSpecificInstance(); |
| 279 } | 281 } |
| 280 | 282 |
| (...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 } | 1301 } |
| 1300 | 1302 |
| 1301 //------------------------------------------------------------------------------ | 1303 //------------------------------------------------------------------------------ |
| 1302 | 1304 |
| 1303 blink::WebTrialTokenValidator* | 1305 blink::WebTrialTokenValidator* |
| 1304 RendererBlinkPlatformImpl::trialTokenValidator() { | 1306 RendererBlinkPlatformImpl::trialTokenValidator() { |
| 1305 return &trial_token_validator_; | 1307 return &trial_token_validator_; |
| 1306 } | 1308 } |
| 1307 | 1309 |
| 1308 } // namespace content | 1310 } // namespace content |
| OLD | NEW |