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

Side by Side Diff: chrome/browser/bug_report_util.h

Issue 3061044: HTML UI implementation for the Google Feedback client for Chrome/ChromeOS.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/bug_report_util.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_BUG_REPORT_UTIL_H_ 5 #ifndef CHROME_BROWSER_BUG_REPORT_UTIL_H_
6 #define CHROME_BROWSER_BUG_REPORT_UTIL_H_ 6 #define CHROME_BROWSER_BUG_REPORT_UTIL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // into a string. We currently have: 56 // into a string. We currently have:
57 // win_util::GetWinVersion returns WinVersion, which is just 57 // win_util::GetWinVersion returns WinVersion, which is just
58 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for 58 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for
59 // bug reports. 59 // bug reports.
60 // base::SysInfo::OperatingSystemVersion returns an std::string 60 // base::SysInfo::OperatingSystemVersion returns an std::string
61 // but doesn't include the build or service pack. That function 61 // but doesn't include the build or service pack. That function
62 // is probably the right one to extend, but will require changing 62 // is probably the right one to extend, but will require changing
63 // all the call sites or making it a wrapper around another util. 63 // all the call sites or making it a wrapper around another util.
64 static void SetOSVersion(std::string *os_version); 64 static void SetOSVersion(std::string *os_version);
65 65
66 // This sets the address of the feedback server to be used by SendReport
67 static void SetFeedbackServer(const std::string& server);
68
66 // Generates bug report data. 69 // Generates bug report data.
67 static void SendReport(Profile* profile, 70 static void SendReport(Profile* profile,
68 const std::string& page_title_text, 71 const std::string& page_title_text,
69 int problem_type, 72 int problem_type,
70 const std::string& page_url_text, 73 const std::string& page_url_text,
71 const std::string& user_email_text,
72 const std::string& description, 74 const std::string& description,
73 const char* png_data, 75 const char* png_data,
74 int png_data_length, 76 int png_data_length,
75 int png_width, 77 int png_width,
76 #if defined(OS_CHROMEOS) 78 #if defined(OS_CHROMEOS)
77 int png_height, 79 int png_height,
78 const std::string& problem_type_text, 80 const std::string& user_email_text,
79 const chromeos::LogDictionaryType* const sys_info); 81 const chromeos::LogDictionaryType* const sys_info);
80 #else 82 #else
81 int png_height); 83 int png_height);
82 #endif 84 #endif
83 85
84 // Redirects the user to Google's phishing reporting page. 86 // Redirects the user to Google's phishing reporting page.
85 static void ReportPhishing(TabContents* currentTab, 87 static void ReportPhishing(TabContents* currentTab,
86 const std::string& phishing_url); 88 const std::string& phishing_url);
87 89
88 class PostCleanup; 90 class PostCleanup;
89 91
90 private: 92 private:
91 // Add a key value pair to the feedback object 93 // Add a key value pair to the feedback object
92 static void AddFeedbackData( 94 static void AddFeedbackData(
93 userfeedback::ExternalExtensionSubmit* feedback_data, 95 userfeedback::ExternalExtensionSubmit* feedback_data,
94 const std::string& key, const std::string& value); 96 const std::string& key, const std::string& value);
95 97
98 static std::string feedback_server_;
99
96 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); 100 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil);
97 }; 101 };
98 102
99 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ 103 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/bug_report_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698