| 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/userfeedback/proto/common.pb.h" | 12 #include "chrome/browser/userfeedback/proto/common.pb.h" |
| 13 #include "chrome/browser/userfeedback/proto/extension.pb.h" | 13 #include "chrome/browser/userfeedback/proto/extension.pb.h" |
| 14 #include "chrome/browser/userfeedback/proto/math.pb.h" | 14 #include "chrome/browser/userfeedback/proto/math.pb.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 #if defined(OS_MACOSX) | 17 #if defined(OS_MACOSX) |
| 18 #include "base/sys_info.h" | 18 #include "base/sys_info.h" |
| 19 #elif defined(OS_WIN) | 19 #elif defined(OS_WIN) |
| 20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
| 21 #elif defined(OS_CHROMEOS) | 21 #elif defined(OS_CHROMEOS) |
| 22 #include "chrome/browser/chromeos/cros/cros_library.h" | 22 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 23 #include "chrome/browser/chromeos/system_access.h" | 23 #include "chrome/browser/chromeos/system/syslogs_provider.h" |
| 24 #endif | 24 #endif |
| 25 | 25 |
| 26 class Profile; | 26 class Profile; |
| 27 class TabContents; | 27 class TabContents; |
| 28 | 28 |
| 29 class BugReportUtil { | 29 class BugReportUtil { |
| 30 public: | 30 public: |
| 31 | 31 |
| 32 #if defined(OS_MACOSX) | 32 #if defined(OS_MACOSX) |
| 33 enum BugType { | 33 enum BugType { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const std::string& page_url_text, | 68 const std::string& page_url_text, |
| 69 const std::string& description, | 69 const std::string& description, |
| 70 const char* png_data, | 70 const char* png_data, |
| 71 int png_data_length, | 71 int png_data_length, |
| 72 int png_width, | 72 int png_width, |
| 73 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
| 74 int png_height, | 74 int png_height, |
| 75 const std::string& user_email_text, | 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::LogDictionaryType* const sys_info); | 78 const chromeos::system::LogDictionaryType* const sys_info); |
| 79 #else | 79 #else |
| 80 int png_height); | 80 int png_height); |
| 81 #endif | 81 #endif |
| 82 | 82 |
| 83 // Redirects the user to Google's phishing reporting page. | 83 // Redirects the user to Google's phishing reporting page. |
| 84 static void ReportPhishing(TabContents* currentTab, | 84 static void ReportPhishing(TabContents* currentTab, |
| 85 const std::string& phishing_url); | 85 const std::string& phishing_url); |
| 86 | 86 |
| 87 class PostCleanup; | 87 class PostCleanup; |
| 88 | 88 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 99 #if defined(OS_CHROMEOS) | 99 #if defined(OS_CHROMEOS) |
| 100 static bool ValidFeedbackSize(const std::string& content); | 100 static bool ValidFeedbackSize(const std::string& content); |
| 101 #endif | 101 #endif |
| 102 | 102 |
| 103 static std::string feedback_server_; | 103 static std::string feedback_server_; |
| 104 | 104 |
| 105 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); | 105 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ | 108 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ |
| OLD | NEW |