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

Side by Side Diff: chrome/browser/browser_about_handler.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/browser_about_handler.h" 5 #include "chrome/browser/browser_about_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 754 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 outputs->clear(); 765 outputs->clear();
766 766
767 // Populate the collector with stats from the local browser process 767 // Populate the collector with stats from the local browser process
768 // and send off requests to all the renderer processes. 768 // and send off requests to all the renderer processes.
769 char buffer[1024 * 32]; 769 char buffer[1024 * 32];
770 MallocExtension::instance()->GetStats(buffer, sizeof(buffer)); 770 MallocExtension::instance()->GetStats(buffer, sizeof(buffer));
771 std::string browser("Browser"); 771 std::string browser("Browser");
772 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer); 772 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer);
773 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); 773 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator());
774 while (!it.IsAtEnd()) { 774 while (!it.IsAtEnd()) {
775 it.GetCurrentValue()->Send(new ViewMsg_GetRendererTcmalloc); 775 it.GetCurrentValue()->Send(new ChromeViewMsg_GetRendererTcmalloc);
776 it.Advance(); 776 it.Advance();
777 } 777 }
778 778
779 return data; 779 return data;
780 } 780 }
781 #endif 781 #endif
782 782
783 std::string AboutHistograms(const std::string& query) { 783 std::string AboutHistograms(const std::string& query) {
784 TimeDelta wait_time = TimeDelta::FromMilliseconds(10000); 784 TimeDelta wait_time = TimeDelta::FromMilliseconds(10000);
785 785
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1527 return false; 1527 return false;
1528 } 1528 }
1529 1529
1530 std::vector<std::string> ChromePaths() { 1530 std::vector<std::string> ChromePaths() {
1531 std::vector<std::string> paths; 1531 std::vector<std::string> paths;
1532 paths.reserve(arraysize(kChromePaths)); 1532 paths.reserve(arraysize(kChromePaths));
1533 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1533 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1534 paths.push_back(kChromePaths[i]); 1534 paths.push_back(kChromePaths[i]);
1535 return paths; 1535 return paths;
1536 } 1536 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698