| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #if defined(OS_MACOSX) | |
| 13 #include "base/mac_util.h" | |
| 14 #include "base/sys_info.h" | |
| 15 #elif defined(OS_WIN) | |
| 16 #include "base/win/windows_version.h" | |
| 17 #endif | |
| 18 #include "chrome/browser/userfeedback/proto/common.pb.h" | 12 #include "chrome/browser/userfeedback/proto/common.pb.h" |
| 19 #include "chrome/browser/userfeedback/proto/extension.pb.h" | 13 #include "chrome/browser/userfeedback/proto/extension.pb.h" |
| 20 #include "chrome/browser/userfeedback/proto/math.pb.h" | 14 #include "chrome/browser/userfeedback/proto/math.pb.h" |
| 21 #include "gfx/rect.h" | 15 #include "gfx/rect.h" |
| 22 | 16 |
| 23 #if defined(OS_CHROMEOS) | 17 #if defined(OS_MACOSX) |
| 18 #include "base/sys_info.h" |
| 19 #elif defined(OS_WIN) |
| 20 #include "base/win/windows_version.h" |
| 21 #elif defined(OS_CHROMEOS) |
| 24 #include "chrome/browser/chromeos/cros/syslogs_library.h" | 22 #include "chrome/browser/chromeos/cros/syslogs_library.h" |
| 25 #include "chrome/browser/chromeos/cros/cros_library.h" | 23 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 26 #endif | 24 #endif |
| 27 | 25 |
| 28 class Profile; | 26 class Profile; |
| 29 class TabContents; | 27 class TabContents; |
| 30 | 28 |
| 31 class BugReportUtil { | 29 class BugReportUtil { |
| 32 public: | 30 public: |
| 33 | 31 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
| 103 static bool ValidFeedbackSize(const std::string& content); | 101 static bool ValidFeedbackSize(const std::string& content); |
| 104 #endif | 102 #endif |
| 105 | 103 |
| 106 static std::string feedback_server_; | 104 static std::string feedback_server_; |
| 107 | 105 |
| 108 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ | 109 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ |
| OLD | NEW |