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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 10151005: cros: Log per-process memory use on low memory events (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/syslogs_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 2937 matching lines...) Expand 10 before | Expand all | Expand 10 after
2948 } 2948 }
2949 2949
2950 // Sample json input: { "command": "GetProcessInfo" } 2950 // Sample json input: { "command": "GetProcessInfo" }
2951 // Refer to GetProcessInfo() in chrome/test/pyautolib/pyauto.py for 2951 // Refer to GetProcessInfo() in chrome/test/pyautolib/pyauto.py for
2952 // sample json output. 2952 // sample json output.
2953 void TestingAutomationProvider::GetProcessInfo( 2953 void TestingAutomationProvider::GetProcessInfo(
2954 DictionaryValue* args, 2954 DictionaryValue* args,
2955 IPC::Message* reply_message) { 2955 IPC::Message* reply_message) {
2956 scoped_refptr<ProcessInfoObserver> 2956 scoped_refptr<ProcessInfoObserver>
2957 proc_observer(new ProcessInfoObserver(this, reply_message)); 2957 proc_observer(new ProcessInfoObserver(this, reply_message));
2958 proc_observer->StartFetch(); 2958 // TODO(jamescook): Maybe this shouldn't update UMA stats?
2959 proc_observer->StartFetch(MemoryDetails::UPDATE_USER_METRICS);
2959 } 2960 }
2960 2961
2961 // Sample json input: { "command": "GetNavigationInfo" } 2962 // Sample json input: { "command": "GetNavigationInfo" }
2962 // Refer to GetNavigationInfo() in chrome/test/pyautolib/pyauto.py for 2963 // Refer to GetNavigationInfo() in chrome/test/pyautolib/pyauto.py for
2963 // sample json output. 2964 // sample json output.
2964 void TestingAutomationProvider::GetNavigationInfo( 2965 void TestingAutomationProvider::GetNavigationInfo(
2965 Browser* browser, 2966 Browser* browser,
2966 DictionaryValue* args, 2967 DictionaryValue* args,
2967 IPC::Message* reply_message) { 2968 IPC::Message* reply_message) {
2968 AutomationJSONReply reply(this, reply_message); 2969 AutomationJSONReply reply(this, reply_message);
(...skipping 4036 matching lines...) Expand 10 before | Expand all | Expand 10 after
7005 *browser_handle = browser_tracker_->Add(browser); 7006 *browser_handle = browser_tracker_->Add(browser);
7006 *success = true; 7007 *success = true;
7007 } 7008 }
7008 } 7009 }
7009 } 7010 }
7010 7011
7011 void TestingAutomationProvider::OnRemoveProvider() { 7012 void TestingAutomationProvider::OnRemoveProvider() {
7012 if (g_browser_process) 7013 if (g_browser_process)
7013 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 7014 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
7014 } 7015 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/system/syslogs_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698