| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 //------------------------------------------------------------------------------ | 294 //------------------------------------------------------------------------------ |
| 295 | 295 |
| 296 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() { | 296 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() { |
| 297 ChildThreadImpl* child_thread = ChildThreadImpl::current(); | 297 ChildThreadImpl* child_thread = ChildThreadImpl::current(); |
| 298 if (!url_loader_factory_ && child_thread) | 298 if (!url_loader_factory_ && child_thread) |
| 299 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_); | 299 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_); |
| 300 // There may be no child thread in RenderViewTests. These tests can still use | 300 // There may be no child thread in RenderViewTests. These tests can still use |
| 301 // data URLs to bypass the ResourceDispatcher. | 301 // data URLs to bypass the ResourceDispatcher. |
| 302 return new content::WebURLLoaderImpl( | 302 return new content::WebURLLoaderImpl( |
| 303 child_thread ? child_thread->resource_dispatcher() : nullptr, | 303 child_thread ? child_thread->resource_dispatcher() : nullptr, |
| 304 url_loader_factory_.get()); | 304 url_loader_factory_.get(), url_loader_factory_.associated_group()); |
| 305 } | 305 } |
| 306 | 306 |
| 307 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { | 307 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { |
| 308 if (main_thread_->isCurrentThread()) | 308 if (main_thread_->isCurrentThread()) |
| 309 return main_thread_.get(); | 309 return main_thread_.get(); |
| 310 return BlinkPlatformImpl::currentThread(); | 310 return BlinkPlatformImpl::currentThread(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() { | 313 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() { |
| 314 return &top_level_blame_context_; | 314 return &top_level_blame_context_; |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1290 return &trial_token_validator_; | 1290 return &trial_token_validator_; |
| 1291 } | 1291 } |
| 1292 | 1292 |
| 1293 void RendererBlinkPlatformImpl::workerContextCreated( | 1293 void RendererBlinkPlatformImpl::workerContextCreated( |
| 1294 const v8::Local<v8::Context>& worker) { | 1294 const v8::Local<v8::Context>& worker) { |
| 1295 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( | 1295 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( |
| 1296 worker); | 1296 worker); |
| 1297 } | 1297 } |
| 1298 | 1298 |
| 1299 } // namespace content | 1299 } // namespace content |
| OLD | NEW |