OLD | NEW |
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 #ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ | 5 #ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ |
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ | 6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 66 static void SendReport( |
67 Profile* profile | 67 Profile* profile |
68 , const std::string& category_tag | 68 , const std::string& category_tag |
69 , const std::string& page_url_text | 69 , const std::string& page_url_text |
70 , const std::string& description | 70 , const std::string& description |
| 71 , const std::string& user_email_text |
71 , ScreenshotDataPtr png_data | 72 , ScreenshotDataPtr png_data |
72 , int png_width | 73 , int png_width |
73 , int png_height | 74 , int png_height |
74 #if defined(OS_CHROMEOS) | 75 #if defined(OS_CHROMEOS) |
75 , const std::string& user_email_text | |
76 , const char* zipped_logs_data | 76 , const char* zipped_logs_data |
77 , int zipped_logs_length | 77 , int zipped_logs_length |
78 , const chromeos::system::LogDictionaryType* const sys_info | 78 , const chromeos::system::LogDictionaryType* const sys_info |
79 , const std::string& timestamp | 79 , const std::string& timestamp |
80 #endif | 80 #endif |
81 ); | 81 ); |
82 // Redirects the user to Google's phishing reporting page. | 82 // Redirects the user to Google's phishing reporting page. |
83 static void ReportPhishing(content::WebContents* current_tab, | 83 static void ReportPhishing(content::WebContents* current_tab, |
84 const std::string& phishing_url); | 84 const std::string& phishing_url); |
85 // Maintains a single vector of bytes to store the last screenshot taken. | 85 // Maintains a single vector of bytes to store the last screenshot taken. |
(...skipping 15 matching lines...) Expand all Loading... |
101 int64 previous_delay); | 101 int64 previous_delay); |
102 | 102 |
103 #if defined(OS_CHROMEOS) | 103 #if defined(OS_CHROMEOS) |
104 static bool ValidFeedbackSize(const std::string& content); | 104 static bool ValidFeedbackSize(const std::string& content); |
105 #endif | 105 #endif |
106 | 106 |
107 DISALLOW_IMPLICIT_CONSTRUCTORS(FeedbackUtil); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(FeedbackUtil); |
108 }; | 108 }; |
109 | 109 |
110 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ | 110 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ |
OLD | NEW |