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

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

Issue 2695333002: Mojo C++ bindings: remove usage of AssociatedGroup from content/ (Closed)
Patch Set: . Created 3 years, 10 months 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
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 71 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
72 #include "content/renderer/webpublicsuffixlist_impl.h" 72 #include "content/renderer/webpublicsuffixlist_impl.h"
73 #include "gpu/command_buffer/client/gles2_interface.h" 73 #include "gpu/command_buffer/client/gles2_interface.h"
74 #include "gpu/config/gpu_info.h" 74 #include "gpu/config/gpu_info.h"
75 #include "gpu/ipc/client/gpu_channel_host.h" 75 #include "gpu/ipc/client/gpu_channel_host.h"
76 #include "gpu/ipc/common/gpu_stream_constants.h" 76 #include "gpu/ipc/common/gpu_stream_constants.h"
77 #include "ipc/ipc_sync_message_filter.h" 77 #include "ipc/ipc_sync_message_filter.h"
78 #include "media/audio/audio_output_device.h" 78 #include "media/audio/audio_output_device.h"
79 #include "media/blink/webcontentdecryptionmodule_impl.h" 79 #include "media/blink/webcontentdecryptionmodule_impl.h"
80 #include "media/filters/stream_parser_factory.h" 80 #include "media/filters/stream_parser_factory.h"
81 #include "mojo/public/cpp/bindings/associated_group.h"
82 #include "ppapi/features/features.h" 81 #include "ppapi/features/features.h"
83 #include "services/service_manager/public/cpp/interface_provider.h" 82 #include "services/service_manager/public/cpp/interface_provider.h"
84 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 83 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
85 #include "storage/common/database/database_identifier.h" 84 #include "storage/common/database/database_identifier.h"
86 #include "storage/common/quota/quota_types.h" 85 #include "storage/common/quota/quota_types.h"
87 #include "third_party/WebKit/public/platform/BlameContext.h" 86 #include "third_party/WebKit/public/platform/BlameContext.h"
88 #include "third_party/WebKit/public/platform/FilePathConversion.h" 87 #include "third_party/WebKit/public/platform/FilePathConversion.h"
89 #include "third_party/WebKit/public/platform/URLConversion.h" 88 #include "third_party/WebKit/public/platform/URLConversion.h"
90 #include "third_party/WebKit/public/platform/WebAudioLatencyHint.h" 89 #include "third_party/WebKit/public/platform/WebAudioLatencyHint.h"
91 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" 90 #include "third_party/WebKit/public/platform/WebBlobRegistry.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 //------------------------------------------------------------------------------ 299 //------------------------------------------------------------------------------
301 300
302 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() { 301 blink::WebURLLoader* RendererBlinkPlatformImpl::createURLLoader() {
303 ChildThreadImpl* child_thread = ChildThreadImpl::current(); 302 ChildThreadImpl* child_thread = ChildThreadImpl::current();
304 if (!url_loader_factory_ && child_thread) 303 if (!url_loader_factory_ && child_thread)
305 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_); 304 child_thread->channel()->GetRemoteAssociatedInterface(&url_loader_factory_);
306 // There may be no child thread in RenderViewTests. These tests can still use 305 // There may be no child thread in RenderViewTests. These tests can still use
307 // data URLs to bypass the ResourceDispatcher. 306 // data URLs to bypass the ResourceDispatcher.
308 return new content::WebURLLoaderImpl( 307 return new content::WebURLLoaderImpl(
309 child_thread ? child_thread->resource_dispatcher() : nullptr, 308 child_thread ? child_thread->resource_dispatcher() : nullptr,
310 url_loader_factory_.get(), url_loader_factory_.associated_group()); 309 url_loader_factory_.get());
311 } 310 }
312 311
313 blink::WebThread* RendererBlinkPlatformImpl::currentThread() { 312 blink::WebThread* RendererBlinkPlatformImpl::currentThread() {
314 if (main_thread_->isCurrentThread()) 313 if (main_thread_->isCurrentThread())
315 return main_thread_.get(); 314 return main_thread_.get();
316 return BlinkPlatformImpl::currentThread(); 315 return BlinkPlatformImpl::currentThread();
317 } 316 }
318 317
319 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() { 318 blink::BlameContext* RendererBlinkPlatformImpl::topLevelBlameContext() {
320 return &top_level_blame_context_; 319 return &top_level_blame_context_;
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 //------------------------------------------------------------------------------ 1291 //------------------------------------------------------------------------------
1293 void RendererBlinkPlatformImpl::requestPurgeMemory() { 1292 void RendererBlinkPlatformImpl::requestPurgeMemory() {
1294 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but 1293 // TODO(tasak|bashi): We should use ChildMemoryCoordinator here, but
1295 // ChildMemoryCoordinator isn't always available as it's only initialized 1294 // ChildMemoryCoordinator isn't always available as it's only initialized
1296 // when kMemoryCoordinatorV0 is enabled. 1295 // when kMemoryCoordinatorV0 is enabled.
1297 // Use ChildMemoryCoordinator when memory coordinator is always enabled. 1296 // Use ChildMemoryCoordinator when memory coordinator is always enabled.
1298 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory(); 1297 base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory();
1299 } 1298 }
1300 1299
1301 } // namespace content 1300 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/test/test_blink_web_unit_test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698