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

Side by Side Diff: content/child/child_thread_impl.cc

Issue 2488913003: Replacing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: Clean-up Created 4 years 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/child/child_thread_impl.h" 5 #include "content/child/child_thread_impl.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 19 matching lines...) Expand all
30 #include "base/threading/thread_local.h" 30 #include "base/threading/thread_local.h"
31 #include "base/threading/thread_task_runner_handle.h" 31 #include "base/threading/thread_task_runner_handle.h"
32 #include "base/timer/elapsed_timer.h" 32 #include "base/timer/elapsed_timer.h"
33 #include "base/tracked_objects.h" 33 #include "base/tracked_objects.h"
34 #include "build/build_config.h" 34 #include "build/build_config.h"
35 #include "components/discardable_memory/client/client_discardable_shared_memory_ manager.h" 35 #include "components/discardable_memory/client/client_discardable_shared_memory_ manager.h"
36 #include "components/tracing/child/child_trace_message_filter.h" 36 #include "components/tracing/child/child_trace_message_filter.h"
37 #include "content/child/child_histogram_message_filter.h" 37 #include "content/child/child_histogram_message_filter.h"
38 #include "content/child/child_process.h" 38 #include "content/child/child_process.h"
39 #include "content/child/child_resource_message_filter.h" 39 #include "content/child/child_resource_message_filter.h"
40 #include "content/child/child_shared_bitmap_manager.h"
41 #include "content/child/fileapi/file_system_dispatcher.h" 40 #include "content/child/fileapi/file_system_dispatcher.h"
42 #include "content/child/fileapi/webfilesystem_impl.h" 41 #include "content/child/fileapi/webfilesystem_impl.h"
43 #include "content/child/memory/child_memory_message_filter.h" 42 #include "content/child/memory/child_memory_message_filter.h"
44 #include "content/child/notifications/notification_dispatcher.h" 43 #include "content/child/notifications/notification_dispatcher.h"
45 #include "content/child/push_messaging/push_dispatcher.h" 44 #include "content/child/push_messaging/push_dispatcher.h"
46 #include "content/child/quota_dispatcher.h" 45 #include "content/child/quota_dispatcher.h"
47 #include "content/child/quota_message_filter.h" 46 #include "content/child/quota_message_filter.h"
48 #include "content/child/resource_dispatcher.h" 47 #include "content/child/resource_dispatcher.h"
49 #include "content/child/service_worker/service_worker_message_filter.h" 48 #include "content/child/service_worker/service_worker_message_filter.h"
50 #include "content/child/thread_safe_sender.h" 49 #include "content/child/thread_safe_sender.h"
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after
584 583
585 message_loop_->task_runner()->PostDelayedTask( 584 message_loop_->task_runner()->PostDelayedTask(
586 FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected, 585 FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected,
587 channel_connected_factory_->GetWeakPtr()), 586 channel_connected_factory_->GetWeakPtr()),
588 base::TimeDelta::FromSeconds(connection_timeout)); 587 base::TimeDelta::FromSeconds(connection_timeout));
589 588
590 #if defined(OS_ANDROID) 589 #if defined(OS_ANDROID)
591 g_quit_closure.Get().BindToMainThread(); 590 g_quit_closure.Get().BindToMainThread();
592 #endif 591 #endif
593 592
594 shared_bitmap_manager_.reset(
595 new ChildSharedBitmapManager(thread_safe_sender()));
596
597 client_discardable_shared_memory_manager_delegate_ = 593 client_discardable_shared_memory_manager_delegate_ =
598 base::MakeUnique<ClientDiscardableSharedMemoryManagerDelegate>( 594 base::MakeUnique<ClientDiscardableSharedMemoryManagerDelegate>(
599 thread_safe_sender()); 595 thread_safe_sender());
600 discardable_shared_memory_manager_ = base::MakeUnique< 596 discardable_shared_memory_manager_ = base::MakeUnique<
601 discardable_memory::ClientDiscardableSharedMemoryManager>( 597 discardable_memory::ClientDiscardableSharedMemoryManager>(
602 client_discardable_shared_memory_manager_delegate_.get()); 598 client_discardable_shared_memory_manager_delegate_.get());
603 } 599 }
604 600
605 ChildThreadImpl::~ChildThreadImpl() { 601 ChildThreadImpl::~ChildThreadImpl() {
606 #ifdef IPC_MESSAGE_LOG_ENABLED 602 #ifdef IPC_MESSAGE_LOG_ENABLED
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 connected_to_browser_ = true; 912 connected_to_browser_ = true;
917 child_info_ = local_info; 913 child_info_ = local_info;
918 browser_info_ = remote_info; 914 browser_info_ = remote_info;
919 } 915 }
920 916
921 bool ChildThreadImpl::IsInBrowserProcess() const { 917 bool ChildThreadImpl::IsInBrowserProcess() const {
922 return static_cast<bool>(browser_process_io_runner_); 918 return static_cast<bool>(browser_process_io_runner_);
923 } 919 }
924 920
925 } // namespace content 921 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698