| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "chrome/browser/ui/webui/screenshot_source.h" |
| 12 #include "chrome/browser/userfeedback/proto/common.pb.h" | 13 #include "chrome/browser/userfeedback/proto/common.pb.h" |
| 13 #include "chrome/browser/userfeedback/proto/extension.pb.h" | 14 #include "chrome/browser/userfeedback/proto/extension.pb.h" |
| 14 #include "chrome/browser/userfeedback/proto/math.pb.h" | 15 #include "chrome/browser/userfeedback/proto/math.pb.h" |
| 15 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
| 16 | 17 |
| 17 #if defined(OS_MACOSX) | 18 #if defined(OS_MACOSX) |
| 18 #include "base/sys_info.h" | 19 #include "base/sys_info.h" |
| 19 #elif defined(OS_WIN) | 20 #elif defined(OS_WIN) |
| 20 #include "base/win/windows_version.h" | 21 #include "base/win/windows_version.h" |
| 21 #elif defined(OS_CHROMEOS) | 22 #elif defined(OS_CHROMEOS) |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 static void DispatchFeedback(Profile* profile, std::string* feedback_data, | 62 static void DispatchFeedback(Profile* profile, std::string* feedback_data, |
| 62 int64 delay); | 63 int64 delay); |
| 63 | 64 |
| 64 | 65 |
| 65 // Generates bug report data. | 66 // Generates bug report data. |
| 66 static void SendReport( | 67 static void SendReport( |
| 67 Profile* profile | 68 Profile* profile |
| 68 , int problem_type | 69 , int problem_type |
| 69 , const std::string& page_url_text | 70 , const std::string& page_url_text |
| 70 , const std::string& description | 71 , const std::string& description |
| 71 , const char* png_data | 72 , ScreenshotDataPtr png_data |
| 72 , int png_data_length | |
| 73 , int png_width | 73 , int png_width |
| 74 , int png_height | 74 , int png_height |
| 75 #if defined(OS_CHROMEOS) | 75 #if defined(OS_CHROMEOS) |
| 76 , const std::string& user_email_text | 76 , const std::string& user_email_text |
| 77 , const char* zipped_logs_data | 77 , const char* zipped_logs_data |
| 78 , int zipped_logs_length | 78 , int zipped_logs_length |
| 79 , const chromeos::system::LogDictionaryType* const sys_info | 79 , const chromeos::system::LogDictionaryType* const sys_info |
| 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. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 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 static std::string feedback_server_; | 107 static std::string feedback_server_; |
| 108 | 108 |
| 109 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); | 109 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); |
| 110 }; | 110 }; |
| 111 | 111 |
| 112 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ | 112 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ |
| OLD | NEW |