| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 // This sets the address of the feedback server to be used by SendReport | 57 // This sets the address of the feedback server to be used by SendReport |
| 58 static void SetFeedbackServer(const std::string& server); | 58 static void SetFeedbackServer(const std::string& server); |
| 59 | 59 |
| 60 // Send the feedback report after the specified delay | 60 // Send the feedback report after the specified delay |
| 61 static void DispatchFeedback(Profile* profile, std::string* feedback_data, | 61 static void DispatchFeedback(Profile* profile, std::string* feedback_data, |
| 62 int64 delay); | 62 int64 delay); |
| 63 | 63 |
| 64 | 64 |
| 65 // Generates bug report data. | 65 // Generates bug report data. |
| 66 static void SendReport(Profile* profile, | 66 static void SendReport(Profile* profile, |
| 67 const std::string& page_title_text, | |
| 68 int problem_type, | 67 int problem_type, |
| 69 const std::string& page_url_text, | 68 const std::string& page_url_text, |
| 70 const std::string& description, | 69 const std::string& description, |
| 71 const char* png_data, | 70 const char* png_data, |
| 72 int png_data_length, | 71 int png_data_length, |
| 73 int png_width, | 72 int png_width, |
| 74 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
| 75 int png_height, | 74 int png_height, |
| 76 const std::string& user_email_text, | 75 const std::string& user_email_text, |
| 77 const char* zipped_logs_data, | 76 const char* zipped_logs_data, |
| (...skipping 22 matching lines...) Expand all Loading... |
| 100 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
| 101 static bool ValidFeedbackSize(const std::string& content); | 100 static bool ValidFeedbackSize(const std::string& content); |
| 102 #endif | 101 #endif |
| 103 | 102 |
| 104 static std::string feedback_server_; | 103 static std::string feedback_server_; |
| 105 | 104 |
| 106 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); | 105 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); |
| 107 }; | 106 }; |
| 108 | 107 |
| 109 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ | 108 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ |
| OLD | NEW |