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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2819493002: [Test] Move DelegatedFrameEvictor into components -public_deps (Closed)
Patch Set: use if null instead of feature 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
11 #include <limits> 11 #include <limits>
12 #include <set> 12 #include <set>
13 #include <utility> 13 #include <utility>
14 #include <vector> 14 #include <vector>
15 15
16 #include "base/base_features.h"
16 #include "base/base_switches.h" 17 #include "base/base_switches.h"
17 #include "base/bind.h" 18 #include "base/bind.h"
18 #include "base/bind_helpers.h" 19 #include "base/bind_helpers.h"
19 #include "base/callback.h" 20 #include "base/callback.h"
20 #include "base/command_line.h" 21 #include "base/command_line.h"
21 #include "base/debug/alias.h" 22 #include "base/debug/alias.h"
22 #include "base/debug/crash_logging.h" 23 #include "base/debug/crash_logging.h"
23 #include "base/debug/dump_without_crashing.h" 24 #include "base/debug/dump_without_crashing.h"
24 #include "base/feature_list.h" 25 #include "base/feature_list.h"
25 #include "base/files/file.h" 26 #include "base/files/file.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 #include "content/public/browser/notification_types.h" 150 #include "content/public/browser/notification_types.h"
150 #include "content/public/browser/render_process_host_factory.h" 151 #include "content/public/browser/render_process_host_factory.h"
151 #include "content/public/browser/render_process_host_observer.h" 152 #include "content/public/browser/render_process_host_observer.h"
152 #include "content/public/browser/render_widget_host.h" 153 #include "content/public/browser/render_widget_host.h"
153 #include "content/public/browser/render_widget_host_iterator.h" 154 #include "content/public/browser/render_widget_host_iterator.h"
154 #include "content/public/browser/resource_context.h" 155 #include "content/public/browser/resource_context.h"
155 #include "content/public/browser/worker_service.h" 156 #include "content/public/browser/worker_service.h"
156 #include "content/public/common/child_process_host.h" 157 #include "content/public/common/child_process_host.h"
157 #include "content/public/common/connection_filter.h" 158 #include "content/public/common/connection_filter.h"
158 #include "content/public/common/content_constants.h" 159 #include "content/public/common/content_constants.h"
159 #include "content/public/common/content_features.h"
160 #include "content/public/common/content_switches.h" 160 #include "content/public/common/content_switches.h"
161 #include "content/public/common/mojo_channel_switches.h" 161 #include "content/public/common/mojo_channel_switches.h"
162 #include "content/public/common/process_type.h" 162 #include "content/public/common/process_type.h"
163 #include "content/public/common/resource_type.h" 163 #include "content/public/common/resource_type.h"
164 #include "content/public/common/result_codes.h" 164 #include "content/public/common/result_codes.h"
165 #include "content/public/common/sandboxed_process_launcher_delegate.h" 165 #include "content/public/common/sandboxed_process_launcher_delegate.h"
166 #include "content/public/common/service_names.mojom.h" 166 #include "content/public/common/service_names.mojom.h"
167 #include "content/public/common/url_constants.h" 167 #include "content/public/common/url_constants.h"
168 #include "device/gamepad/gamepad_monitor.h" 168 #include "device/gamepad/gamepad_monitor.h"
169 #include "gpu/GLES2/gl2extchromium.h" 169 #include "gpu/GLES2/gl2extchromium.h"
(...skipping 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after
1255 GetID())); 1255 GetID()));
1256 AddUIThreadInterface( 1256 AddUIThreadInterface(
1257 registry.get(), 1257 registry.get(),
1258 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1258 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1259 base::Unretained(this))); 1259 base::Unretained(this)));
1260 AddUIThreadInterface( 1260 AddUIThreadInterface(
1261 registry.get(), 1261 registry.get(),
1262 base::Bind(&BroadcastChannelProvider::Connect, 1262 base::Bind(&BroadcastChannelProvider::Connect,
1263 base::Unretained( 1263 base::Unretained(
1264 storage_partition_impl_->GetBroadcastChannelProvider()))); 1264 storage_partition_impl_->GetBroadcastChannelProvider())));
1265 if (base::FeatureList::IsEnabled(features::kMemoryCoordinator)) { 1265 if (base::FeatureList::IsEnabled(base::features::kMemoryCoordinator)) {
1266 AddUIThreadInterface( 1266 AddUIThreadInterface(
1267 registry.get(), base::Bind(&CreateMemoryCoordinatorHandle, GetID())); 1267 registry.get(), base::Bind(&CreateMemoryCoordinatorHandle, GetID()));
1268 } 1268 }
1269 1269
1270 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = 1270 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner =
1271 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); 1271 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE);
1272 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create), 1272 registry->AddInterface(base::Bind(&MimeRegistryImpl::Create),
1273 file_task_runner); 1273 file_task_runner);
1274 #if BUILDFLAG(USE_MINIKIN_HYPHENATION) 1274 #if BUILDFLAG(USE_MINIKIN_HYPHENATION)
1275 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create), 1275 registry->AddInterface(base::Bind(&hyphenation::HyphenationImpl::Create),
(...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after
3058 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 3058 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
3059 3059
3060 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. 3060 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing.
3061 // Capture the error message in a crash key value. 3061 // Capture the error message in a crash key value.
3062 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error); 3062 base::debug::ScopedCrashKey error_key_value("mojo-message-error", error);
3063 bad_message::ReceivedBadMessage(render_process_id, 3063 bad_message::ReceivedBadMessage(render_process_id,
3064 bad_message::RPH_MOJO_PROCESS_ERROR); 3064 bad_message::RPH_MOJO_PROCESS_ERROR);
3065 } 3065 }
3066 3066
3067 } // namespace content 3067 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/delegated_frame_host.cc ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698