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

Side by Side Diff: chrome/browser/chromeos/status/memory_menu_button.cc

Issue 7631063: Prefix all IPC messages used by src\chrome with Chrome. For e.g ChromeViewMsg_, ChromeViewHostMsg... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/chromeos/status/memory_menu_button.h" 5 #include "chrome/browser/chromeos/status/memory_menu_button.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/process_util.h" // GetSystemMemoryInfo 8 #include "base/process_util.h" // GetSystemMemoryInfo
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/threading/thread_restrictions.h" 10 #include "base/threading/thread_restrictions.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 void MemoryMenuButton::SendCommandToRenderers(int id) { 146 void MemoryMenuButton::SendCommandToRenderers(int id) {
147 #if defined(USE_TCMALLOC) 147 #if defined(USE_TCMALLOC)
148 // Use the "is running" value for this process to determine whether to 148 // Use the "is running" value for this process to determine whether to
149 // start or stop profiling on the renderer processes. 149 // start or stop profiling on the renderer processes.
150 bool started = IsHeapProfilerRunning(); 150 bool started = IsHeapProfilerRunning();
151 for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator(); 151 for (RenderProcessHost::iterator it = RenderProcessHost::AllHostsIterator();
152 !it.IsAtEnd(); it.Advance()) { 152 !it.IsAtEnd(); it.Advance()) {
153 switch (id) { 153 switch (id) {
154 case TOGGLE_PROFILING_ITEM: 154 case TOGGLE_PROFILING_ITEM:
155 it.GetCurrentValue()->Send(new ViewMsg_SetTcmallocHeapProfiling( 155 it.GetCurrentValue()->Send(new ChromeViewMsg_SetTcmallocHeapProfiling(
156 started, std::string(kProfileDumpFilePrefix))); 156 started, std::string(kProfileDumpFilePrefix)));
157 break; 157 break;
158 case DUMP_PROFILING_ITEM: 158 case DUMP_PROFILING_ITEM:
159 it.GetCurrentValue()->Send(new ViewMsg_WriteTcmallocHeapProfile( 159 it.GetCurrentValue()->Send(new ChromeViewMsg_WriteTcmallocHeapProfile(
160 GetProfileDumpFilePath( 160 GetProfileDumpFilePath(
161 base::GetProcId(it.GetCurrentValue()->GetHandle())))); 161 base::GetProcId(it.GetCurrentValue()->GetHandle()))));
162 break; 162 break;
163 default: 163 default:
164 NOTREACHED(); 164 NOTREACHED();
165 } 165 }
166 } 166 }
167 #endif 167 #endif
168 } 168 }
169 169
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 } 263 }
264 break; 264 break;
265 } 265 }
266 default: 266 default:
267 NOTREACHED() << L"Received unexpected notification"; 267 NOTREACHED() << L"Received unexpected notification";
268 break; 268 break;
269 } 269 }
270 } 270 }
271 271
272 } // namespace chromeos 272 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/image_decoder.cc ('k') | chrome/browser/component_updater/component_updater_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698