OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ | 5 #ifndef COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
6 #define COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ | 6 #define COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 | 13 |
14 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
15 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
16 #elif defined(OS_WIN) | 16 #elif defined(OS_WIN) |
17 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
18 #endif | 18 #endif |
19 | 19 |
20 class Profile; | |
21 | |
22 namespace content { | |
23 class WebContents; | |
24 } | |
25 | |
26 namespace chrome { | 20 namespace chrome { |
27 extern const char kAppLauncherCategoryTag[]; | 21 extern const char kAppLauncherCategoryTag[]; |
28 } // namespace chrome | 22 } // namespace chrome |
29 | 23 |
30 namespace feedback { | 24 namespace feedback { |
31 class FeedbackData; | 25 class FeedbackData; |
32 } | 26 } |
33 | 27 |
34 namespace feedback_util { | 28 namespace feedback_util { |
35 | 29 |
36 void SendReport(scoped_refptr<feedback::FeedbackData> data); | 30 void SendReport(scoped_refptr<feedback::FeedbackData> data); |
37 bool ZipString(const base::FilePath& filename, | 31 bool ZipString(const base::FilePath& filename, |
38 const std::string& data, std::string* compressed_data); | 32 const std::string& data, std::string* compressed_data); |
39 | 33 |
40 } // namespace feedback_util | 34 } // namespace feedback_util |
41 | 35 |
42 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ | 36 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
OLD | NEW |