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

Side by Side Diff: chrome/browser/task_manager/providers/child_process_task.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "chrome/browser/task_manager/providers/child_process_task.h" 5 #include "chrome/browser/task_manager/providers/child_process_task.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/numerics/safe_conversions.h" 10 #include "base/numerics/safe_conversions.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 void ConnectResourceReporterOnIOThread( 117 void ConnectResourceReporterOnIOThread(
118 int unique_child_process_id, 118 int unique_child_process_id,
119 mojom::ResourceUsageReporterRequest resource_reporter) { 119 mojom::ResourceUsageReporterRequest resource_reporter) {
120 DCHECK_CURRENTLY_ON(content::BrowserThread::IO); 120 DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
121 121
122 content::BrowserChildProcessHost* host = 122 content::BrowserChildProcessHost* host =
123 content::BrowserChildProcessHost::FromID(unique_child_process_id); 123 content::BrowserChildProcessHost::FromID(unique_child_process_id);
124 if (!host) 124 if (!host)
125 return; 125 return;
126 126
127 shell::InterfaceProvider* interfaces = host->GetHost()->GetRemoteInterfaces(); 127 service_manager::InterfaceProvider* interfaces =
128 host->GetHost()->GetRemoteInterfaces();
128 if (interfaces) 129 if (interfaces)
129 interfaces->GetInterface(std::move(resource_reporter)); 130 interfaces->GetInterface(std::move(resource_reporter));
130 } 131 }
131 132
132 // Creates the Mojo service wrapper that will be used to sample the V8 memory 133 // Creates the Mojo service wrapper that will be used to sample the V8 memory
133 // usage of the browser child process whose unique ID is 134 // usage of the browser child process whose unique ID is
134 // |unique_child_process_id|. 135 // |unique_child_process_id|.
135 ProcessResourceUsage* CreateProcessResourcesSampler( 136 ProcessResourceUsage* CreateProcessResourcesSampler(
136 int unique_child_process_id) { 137 int unique_child_process_id) {
137 mojom::ResourceUsageReporterPtr usage_reporter; 138 mojom::ResourceUsageReporterPtr usage_reporter;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 230
230 int64_t ChildProcessTask::GetV8MemoryAllocated() const { 231 int64_t ChildProcessTask::GetV8MemoryAllocated() const {
231 return v8_memory_allocated_; 232 return v8_memory_allocated_;
232 } 233 }
233 234
234 int64_t ChildProcessTask::GetV8MemoryUsed() const { 235 int64_t ChildProcessTask::GetV8MemoryUsed() const {
235 return v8_memory_used_; 236 return v8_memory_used_;
236 } 237 }
237 238
238 } // namespace task_manager 239 } // namespace task_manager
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/chrome_password_manager_client_unittest.cc ('k') | chrome/browser/ui/ash/ash_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698