Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2449933003: Use Associated interfaces for mojo-loading (Closed)
Patch Set: fix Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 //------------------------------------------------------------------------------ 309 //------------------------------------------------------------------------------
310 310
311 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() { 311 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() {
312 ChildThreadImpl* child_thread = ChildThreadImpl::current(); 312 ChildThreadImpl* child_thread = ChildThreadImpl::current();
313 if (!url_loader_factory_ && child_thread) 313 if (!url_loader_factory_ && child_thread)
314 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_); 314 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_);
315 // There may be no child thread in RenderViewTests. These tests can still use 315 // There may be no child thread in RenderViewTests. These tests can still use
316 // data URLs to bypass the ResourceDispatcher. 316 // data URLs to bypass the ResourceDispatcher.
317 return new content::WebURLLoaderImpl( 317 return new content::WebURLLoaderImpl(
318 child_thread ? child_thread->resource_dispatcher() : nullptr, 318 child_thread ? child_thread->resource_dispatcher() : nullptr,
319 url_loader_factory_.get()); 319 url_loader_factory_.get(), url_loader_factory_.associated_group());
320 } 320 }
321 321
322 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { 322 blink::WebThread* RendererBlinkPlatformImpl::currentThread() {
323 if (main_thread_->isCurrentThread()) 323 if (main_thread_->isCurrentThread())
324 return main_thread_.get(); 324 return main_thread_.get();
325 return BlinkPlatformImpl::currentThread(); 325 return BlinkPlatformImpl::currentThread();
326 } 326 }
327 327
328 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() { 328 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() {
329 return &top_level_blame_context_; 329 return &top_level_blame_context_;
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1326 return &trial_token_validator_; 1326 return &trial_token_validator_;
1327 } 1327 }
1328 1328
1329 void RendererBlinkPlatformImpl::workerContextCreated( 1329 void RendererBlinkPlatformImpl::workerContextCreated(
1330 const v8::Local<v8::Context>& worker) { 1330 const v8::Local<v8::Context>& worker) {
1331 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1331 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1332 worker); 1332 worker);
1333 } 1333 }
1334 1334
1335 } // namespace content 1335 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698