summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bug_report_util.h
diff options
context:
space:
mode:
authorstevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 21:41:16 +0000
committerstevenjb@google.com <stevenjb@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 21:41:16 +0000
commit9bb480ee427dda14ba9ab81669b510bd40615c42 (patch)
tree8787dfd4b5900a73c7e9414167be080ce87f879a /chrome/browser/bug_report_util.h
parentab5fcc30ea46c1ed3f6fa399b68cf965076a19d2 (diff)
downloadchromium_src-9bb480ee427dda14ba9ab81669b510bd40615c42.zip
chromium_src-9bb480ee427dda14ba9ab81669b510bd40615c42.tar.gz
chromium_src-9bb480ee427dda14ba9ab81669b510bd40615c42.tar.bz2
Add memory usage info to SyslogsProvider, and clean up bug report screenshot data.
BUG=chromium-os:18418 TEST=Ensure bug reporting and screenshots work, system info is only provided when option is checked, and system info includes "mem_usage" entry. Review URL: http://codereview.chromium.org/7562001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bug_report_util.h')
-rw-r--r--chrome/browser/bug_report_util.h34
1 files changed, 19 insertions, 15 deletions
diff --git a/chrome/browser/bug_report_util.h b/chrome/browser/bug_report_util.h
index 203be98..edc9739 100644
--- a/chrome/browser/bug_report_util.h
+++ b/chrome/browser/bug_report_util.h
@@ -63,26 +63,30 @@ class BugReportUtil {
// Generates bug report data.
- static void SendReport(Profile* profile,
- int problem_type,
- const std::string& page_url_text,
- const std::string& description,
- const char* png_data,
- int png_data_length,
- int png_width,
+ static void SendReport(
+ Profile* profile
+ , int problem_type
+ , const std::string& page_url_text
+ , const std::string& description
+ , const char* png_data
+ , int png_data_length
+ , int png_width
+ , int png_height
#if defined(OS_CHROMEOS)
- int png_height,
- const std::string& user_email_text,
- const char* zipped_logs_data,
- int zipped_logs_length,
- const chromeos::system::LogDictionaryType* const sys_info);
-#else
- int png_height);
+ , const std::string& user_email_text
+ , const char* zipped_logs_data
+ , int zipped_logs_length
+ , const chromeos::system::LogDictionaryType* const sys_info
#endif
-
+ );
// Redirects the user to Google's phishing reporting page.
static void ReportPhishing(TabContents* currentTab,
const std::string& phishing_url);
+ // Maintains a single vector of bytes to store the last screenshot taken.
+ static std::vector<unsigned char>* GetScreenshotPng();
+ static void ClearScreenshotPng();
+ static void SetScreenshotSize(const gfx::Rect& rect);
+ static gfx::Rect& GetScreenshotSize();
class PostCleanup;