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

Side by Side Diff: chrome/browser/browser_about_handler.cc

Issue 8515027: Define the public version of the browser side RenderProcessHost interface. This interface is not ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 29 matching lines...) Expand all
40 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 40 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
41 #include "chrome/common/about_handler.h" 41 #include "chrome/common/about_handler.h"
42 #include "chrome/common/chrome_paths.h" 42 #include "chrome/common/chrome_paths.h"
43 #include "chrome/common/chrome_version_info.h" 43 #include "chrome/common/chrome_version_info.h"
44 #include "chrome/common/jstemplate_builder.h" 44 #include "chrome/common/jstemplate_builder.h"
45 #include "chrome/common/net/gaia/google_service_auth_error.h" 45 #include "chrome/common/net/gaia/google_service_auth_error.h"
46 #include "chrome/common/render_messages.h" 46 #include "chrome/common/render_messages.h"
47 #include "chrome/common/url_constants.h" 47 #include "chrome/common/url_constants.h"
48 #include "content/browser/gpu/gpu_process_host.h" 48 #include "content/browser/gpu/gpu_process_host.h"
49 #include "content/browser/plugin_service.h" 49 #include "content/browser/plugin_service.h"
50 #include "content/browser/renderer_host/render_process_host.h"
51 #include "content/browser/renderer_host/render_view_host.h" 50 #include "content/browser/renderer_host/render_view_host.h"
52 #include "content/browser/sensors/sensors_provider.h" 51 #include "content/browser/sensors/sensors_provider.h"
53 #include "content/common/gpu/gpu_messages.h" 52 #include "content/common/gpu/gpu_messages.h"
54 #include "content/public/browser/browser_thread.h" 53 #include "content/public/browser/browser_thread.h"
54 #include "content/public/browser/render_process_host.h"
55 #include "content/public/common/content_client.h" 55 #include "content/public/common/content_client.h"
56 #include "crypto/nss_util.h" 56 #include "crypto/nss_util.h"
57 #include "googleurl/src/gurl.h" 57 #include "googleurl/src/gurl.h"
58 #include "grit/browser_resources.h" 58 #include "grit/browser_resources.h"
59 #include "grit/chromium_strings.h" 59 #include "grit/chromium_strings.h"
60 #include "grit/generated_resources.h" 60 #include "grit/generated_resources.h"
61 #include "grit/locale_settings.h" 61 #include "grit/locale_settings.h"
62 #include "net/base/escape.h" 62 #include "net/base/escape.h"
63 #include "net/base/net_util.h" 63 #include "net/base/net_util.h"
64 #include "ui/base/l10n/l10n_util.h" 64 #include "ui/base/l10n/l10n_util.h"
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 824
825 // Reset our collector singleton. 825 // Reset our collector singleton.
826 outputs->clear(); 826 outputs->clear();
827 827
828 // Populate the collector with stats from the local browser process 828 // Populate the collector with stats from the local browser process
829 // and send off requests to all the renderer processes. 829 // and send off requests to all the renderer processes.
830 char buffer[1024 * 32]; 830 char buffer[1024 * 32];
831 MallocExtension::instance()->GetStats(buffer, sizeof(buffer)); 831 MallocExtension::instance()->GetStats(buffer, sizeof(buffer));
832 std::string browser("Browser"); 832 std::string browser("Browser");
833 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer); 833 AboutTcmallocOutputs::GetInstance()->SetOutput(browser, buffer);
834 RenderProcessHost::iterator it(RenderProcessHost::AllHostsIterator()); 834 content::RenderProcessHost::iterator
835 it(content::RenderProcessHost::AllHostsIterator());
835 while (!it.IsAtEnd()) { 836 while (!it.IsAtEnd()) {
836 it.GetCurrentValue()->Send(new ChromeViewMsg_GetRendererTcmalloc); 837 it.GetCurrentValue()->Send(new ChromeViewMsg_GetRendererTcmalloc);
837 it.Advance(); 838 it.Advance();
838 } 839 }
839 840
840 return data; 841 return data;
841 } 842 }
842 #endif 843 #endif
843 844
844 std::string AboutHistograms(const std::string& query) { 845 std::string AboutHistograms(const std::string& query) {
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1612 return false; 1613 return false;
1613 } 1614 }
1614 1615
1615 std::vector<std::string> ChromePaths() { 1616 std::vector<std::string> ChromePaths() {
1616 std::vector<std::string> paths; 1617 std::vector<std::string> paths;
1617 paths.reserve(arraysize(kChromePaths)); 1618 paths.reserve(arraysize(kChromePaths));
1618 for (size_t i = 0; i < arraysize(kChromePaths); i++) 1619 for (size_t i = 0; i < arraysize(kChromePaths); i++)
1619 paths.push_back(kChromePaths[i]); 1620 paths.push_back(kChromePaths[i]);
1620 return paths; 1621 return paths;
1621 } 1622 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/browser_process_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698