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

Side by Side Diff: content/browser/browser_main_loop.cc

Issue 2717213004: Move SharedBitmapManager implementation out of content/ (Closed)
Patch Set: rebase Created 3 years, 8 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/browser/DEPS ('k') | content/browser/browser_plugin/browser_plugin_guest.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/browser/browser_main_loop.h" 5 #include "content/browser/browser_main_loop.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 28 matching lines...) Expand all
39 #include "base/task_scheduler/task_traits.h" 39 #include "base/task_scheduler/task_traits.h"
40 #include "base/threading/sequenced_worker_pool.h" 40 #include "base/threading/sequenced_worker_pool.h"
41 #include "base/threading/thread_restrictions.h" 41 #include "base/threading/thread_restrictions.h"
42 #include "base/threading/thread_task_runner_handle.h" 42 #include "base/threading/thread_task_runner_handle.h"
43 #include "base/time/time.h" 43 #include "base/time/time.h"
44 #include "base/timer/hi_res_timer_manager.h" 44 #include "base/timer/hi_res_timer_manager.h"
45 #include "base/trace_event/memory_dump_manager.h" 45 #include "base/trace_event/memory_dump_manager.h"
46 #include "base/trace_event/trace_event.h" 46 #include "base/trace_event/trace_event.h"
47 #include "build/build_config.h" 47 #include "build/build_config.h"
48 #include "components/discardable_memory/service/discardable_shared_memory_manage r.h" 48 #include "components/discardable_memory/service/discardable_shared_memory_manage r.h"
49 #include "components/display_compositor/host_shared_bitmap_manager.h"
49 #include "components/tracing/common/process_metrics_memory_dump_provider.h" 50 #include "components/tracing/common/process_metrics_memory_dump_provider.h"
50 #include "components/tracing/common/trace_config_file.h" 51 #include "components/tracing/common/trace_config_file.h"
51 #include "components/tracing/common/trace_to_console.h" 52 #include "components/tracing/common/trace_to_console.h"
52 #include "components/tracing/common/tracing_switches.h" 53 #include "components/tracing/common/tracing_switches.h"
53 #include "content/browser/audio_manager_thread.h" 54 #include "content/browser/audio_manager_thread.h"
54 #include "content/browser/browser_thread_impl.h" 55 #include "content/browser/browser_thread_impl.h"
55 #include "content/browser/dom_storage/dom_storage_area.h" 56 #include "content/browser/dom_storage/dom_storage_area.h"
56 #include "content/browser/download/download_resource_handler.h" 57 #include "content/browser/download/download_resource_handler.h"
57 #include "content/browser/download/save_file_manager.h" 58 #include "content/browser/download/save_file_manager.h"
58 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" 59 #include "content/browser/gpu/browser_gpu_channel_host_factory.h"
(...skipping 12 matching lines...) Expand all
71 #include "content/browser/net/browser_online_state_observer.h" 72 #include "content/browser/net/browser_online_state_observer.h"
72 #include "content/browser/renderer_host/media/media_stream_manager.h" 73 #include "content/browser/renderer_host/media/media_stream_manager.h"
73 #include "content/browser/renderer_host/render_process_host_impl.h" 74 #include "content/browser/renderer_host/render_process_host_impl.h"
74 #include "content/browser/service_manager/service_manager_context.h" 75 #include "content/browser/service_manager/service_manager_context.h"
75 #include "content/browser/speech/speech_recognition_manager_impl.h" 76 #include "content/browser/speech/speech_recognition_manager_impl.h"
76 #include "content/browser/startup_task_runner.h" 77 #include "content/browser/startup_task_runner.h"
77 #include "content/browser/utility_process_host_impl.h" 78 #include "content/browser/utility_process_host_impl.h"
78 #include "content/browser/webui/content_web_ui_controller_factory.h" 79 #include "content/browser/webui/content_web_ui_controller_factory.h"
79 #include "content/browser/webui/url_data_manager.h" 80 #include "content/browser/webui/url_data_manager.h"
80 #include "content/common/content_switches_internal.h" 81 #include "content/common/content_switches_internal.h"
81 #include "content/common/host_shared_bitmap_manager.h"
82 #include "content/common/service_manager/service_manager_connection_impl.h" 82 #include "content/common/service_manager/service_manager_connection_impl.h"
83 #include "content/public/browser/browser_main_parts.h" 83 #include "content/public/browser/browser_main_parts.h"
84 #include "content/public/browser/content_browser_client.h" 84 #include "content/public/browser/content_browser_client.h"
85 #include "content/public/browser/gpu_data_manager_observer.h" 85 #include "content/public/browser/gpu_data_manager_observer.h"
86 #include "content/public/browser/render_process_host.h" 86 #include "content/public/browser/render_process_host.h"
87 #include "content/public/browser/tracing_controller.h" 87 #include "content/public/browser/tracing_controller.h"
88 #include "content/public/common/content_client.h" 88 #include "content/public/common/content_client.h"
89 #include "content/public/common/content_features.h" 89 #include "content/public/common/content_features.h"
90 #include "content/public/common/content_switches.h" 90 #include "content/public/common/content_switches.h"
91 #include "content/public/common/main_function_params.h" 91 #include "content/public/common/main_function_params.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 // in BrowserMainLoop::ShutdownThreadsAndCleanupIO. 797 // in BrowserMainLoop::ShutdownThreadsAndCleanupIO.
798 memory_instrumentation_coordinator_ = 798 memory_instrumentation_coordinator_ =
799 base::MakeUnique<memory_instrumentation::CoordinatorImpl>( 799 base::MakeUnique<memory_instrumentation::CoordinatorImpl>(
800 true /* initialize_memory_dump_manager */); 800 true /* initialize_memory_dump_manager */);
801 801
802 // Enable memory-infra dump providers. 802 // Enable memory-infra dump providers.
803 InitSkiaEventTracer(); 803 InitSkiaEventTracer();
804 tracing::ProcessMetricsMemoryDumpProvider::RegisterForProcess( 804 tracing::ProcessMetricsMemoryDumpProvider::RegisterForProcess(
805 base::kNullProcessId); 805 base::kNullProcessId);
806 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 806 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
807 HostSharedBitmapManager::current(), "HostSharedBitmapManager", nullptr); 807 display_compositor::HostSharedBitmapManager::current(),
808 "display_compositor::HostSharedBitmapManager", nullptr);
808 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 809 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
809 skia::SkiaMemoryDumpProvider::GetInstance(), "Skia", nullptr); 810 skia::SkiaMemoryDumpProvider::GetInstance(), "Skia", nullptr);
810 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider( 811 base::trace_event::MemoryDumpManager::GetInstance()->RegisterDumpProvider(
811 sql::SqlMemoryDumpProvider::GetInstance(), "Sql", nullptr); 812 sql::SqlMemoryDumpProvider::GetInstance(), "Sql", nullptr);
812 } 813 }
813 814
814 int BrowserMainLoop::PreCreateThreads() { 815 int BrowserMainLoop::PreCreateThreads() {
815 // SequencedWorkerPool shouldn't be enabled yet. It should be enabled below by 816 // SequencedWorkerPool shouldn't be enabled yet. It should be enabled below by
816 // either |parts_|->PreCreateThreads() or 817 // either |parts_|->PreCreateThreads() or
817 // base::SequencedWorkerPool::EnableForProcess(). 818 // base::SequencedWorkerPool::EnableForProcess().
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
1764 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE), 1765 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE),
1765 MediaInternals::GetInstance()); 1766 MediaInternals::GetInstance());
1766 } 1767 }
1767 CHECK(audio_manager_); 1768 CHECK(audio_manager_);
1768 1769
1769 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get()); 1770 audio_system_ = media::AudioSystemImpl::Create(audio_manager_.get());
1770 CHECK(audio_system_); 1771 CHECK(audio_system_);
1771 } 1772 }
1772 1773
1773 } // namespace content 1774 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/browser_plugin/browser_plugin_guest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698