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

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

Issue 2549213005: Reland of placing allocate bitmap IPC messages with a new Mojo interface. (Closed)
Patch Set: 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
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/child_process_messages.h » ('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/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 18 matching lines...) Expand all
29 #include "base/synchronization/lock.h" 29 #include "base/synchronization/lock.h"
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/tracing/child/child_trace_message_filter.h" 35 #include "components/tracing/child/child_trace_message_filter.h"
36 #include "content/child/child_histogram_message_filter.h" 36 #include "content/child/child_histogram_message_filter.h"
37 #include "content/child/child_process.h" 37 #include "content/child/child_process.h"
38 #include "content/child/child_resource_message_filter.h" 38 #include "content/child/child_resource_message_filter.h"
39 #include "content/child/child_shared_bitmap_manager.h"
40 #include "content/child/fileapi/file_system_dispatcher.h" 39 #include "content/child/fileapi/file_system_dispatcher.h"
41 #include "content/child/fileapi/webfilesystem_impl.h" 40 #include "content/child/fileapi/webfilesystem_impl.h"
42 #include "content/child/memory/child_memory_message_filter.h" 41 #include "content/child/memory/child_memory_message_filter.h"
43 #include "content/child/notifications/notification_dispatcher.h" 42 #include "content/child/notifications/notification_dispatcher.h"
44 #include "content/child/push_messaging/push_dispatcher.h" 43 #include "content/child/push_messaging/push_dispatcher.h"
45 #include "content/child/quota_dispatcher.h" 44 #include "content/child/quota_dispatcher.h"
46 #include "content/child/quota_message_filter.h" 45 #include "content/child/quota_message_filter.h"
47 #include "content/child/resource_dispatcher.h" 46 #include "content/child/resource_dispatcher.h"
48 #include "content/child/service_worker/service_worker_message_filter.h" 47 #include "content/child/service_worker/service_worker_message_filter.h"
49 #include "content/child/thread_safe_sender.h" 48 #include "content/child/thread_safe_sender.h"
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 } 553 }
555 554
556 message_loop_->task_runner()->PostDelayedTask( 555 message_loop_->task_runner()->PostDelayedTask(
557 FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected, 556 FROM_HERE, base::Bind(&ChildThreadImpl::EnsureConnected,
558 channel_connected_factory_->GetWeakPtr()), 557 channel_connected_factory_->GetWeakPtr()),
559 base::TimeDelta::FromSeconds(connection_timeout)); 558 base::TimeDelta::FromSeconds(connection_timeout));
560 559
561 #if defined(OS_ANDROID) 560 #if defined(OS_ANDROID)
562 g_quit_closure.Get().BindToMainThread(); 561 g_quit_closure.Get().BindToMainThread();
563 #endif 562 #endif
564
565 shared_bitmap_manager_.reset(
566 new ChildSharedBitmapManager(thread_safe_sender()));
567 } 563 }
568 564
569 ChildThreadImpl::~ChildThreadImpl() { 565 ChildThreadImpl::~ChildThreadImpl() {
570 #ifdef IPC_MESSAGE_LOG_ENABLED 566 #ifdef IPC_MESSAGE_LOG_ENABLED
571 IPC::Logging::GetInstance()->SetIPCSender(NULL); 567 IPC::Logging::GetInstance()->SetIPCSender(NULL);
572 #endif 568 #endif
573 569
574 channel_->RemoveFilter(histogram_message_filter_.get()); 570 channel_->RemoveFilter(histogram_message_filter_.get());
575 channel_->RemoveFilter(sync_message_filter_.get()); 571 channel_->RemoveFilter(sync_message_filter_.get());
576 572
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 connected_to_browser_ = true; 872 connected_to_browser_ = true;
877 child_info_ = local_info; 873 child_info_ = local_info;
878 browser_info_ = remote_info; 874 browser_info_ = remote_info;
879 } 875 }
880 876
881 bool ChildThreadImpl::IsInBrowserProcess() const { 877 bool ChildThreadImpl::IsInBrowserProcess() const {
882 return static_cast<bool>(browser_process_io_runner_); 878 return static_cast<bool>(browser_process_io_runner_);
883 } 879 }
884 880
885 } // namespace content 881 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/common/child_process_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698