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

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

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase 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 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 interfaces->GetInterface(std::move(resource_reporter)); 130 interfaces->GetInterface(std::move(resource_reporter));
131 } 131 }
132 132
133 // 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
134 // usage of the browser child process whose unique ID is 134 // usage of the browser child process whose unique ID is
135 // |unique_child_process_id|. 135 // |unique_child_process_id|.
136 ProcessResourceUsage* CreateProcessResourcesSampler( 136 ProcessResourceUsage* CreateProcessResourcesSampler(
137 int unique_child_process_id) { 137 int unique_child_process_id) {
138 chrome::mojom::ResourceUsageReporterPtr usage_reporter; 138 chrome::mojom::ResourceUsageReporterPtr usage_reporter;
139 chrome::mojom::ResourceUsageReporterRequest request = 139 chrome::mojom::ResourceUsageReporterRequest request =
140 mojo::GetProxy(&usage_reporter); 140 mojo::MakeRequest(&usage_reporter);
141 content::BrowserThread::PostTask( 141 content::BrowserThread::PostTask(
142 content::BrowserThread::IO, 142 content::BrowserThread::IO,
143 FROM_HERE, 143 FROM_HERE,
144 base::Bind(&ConnectResourceReporterOnIOThread, 144 base::Bind(&ConnectResourceReporterOnIOThread,
145 unique_child_process_id, base::Passed(&request))); 145 unique_child_process_id, base::Passed(&request)));
146 146
147 return new ProcessResourceUsage(std::move(usage_reporter)); 147 return new ProcessResourceUsage(std::move(usage_reporter));
148 } 148 }
149 149
150 bool UsesV8Memory(int process_type) { 150 bool UsesV8Memory(int process_type) {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 int64_t ChildProcessTask::GetV8MemoryAllocated() const { 232 int64_t ChildProcessTask::GetV8MemoryAllocated() const {
233 return v8_memory_allocated_; 233 return v8_memory_allocated_;
234 } 234 }
235 235
236 int64_t ChildProcessTask::GetV8MemoryUsed() const { 236 int64_t ChildProcessTask::GetV8MemoryUsed() const {
237 return v8_memory_used_; 237 return v8_memory_used_;
238 } 238 }
239 239
240 } // namespace task_manager 240 } // namespace task_manager
OLDNEW
« no previous file with comments | « chrome/browser/process_resource_usage.h ('k') | chrome/browser/ui/views/ime_driver/ime_driver_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698