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 COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ | 6 #define COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "chrome/browser/feedback/proto/common.pb.h" | |
14 #include "chrome/browser/feedback/proto/dom.pb.h" | |
15 #include "chrome/browser/feedback/proto/extension.pb.h" | |
16 #include "chrome/browser/feedback/proto/math.pb.h" | |
17 #include "ui/gfx/rect.h" | |
18 | 13 |
19 #if defined(OS_MACOSX) | 14 #if defined(OS_MACOSX) |
20 #include "base/sys_info.h" | 15 #include "base/sys_info.h" |
21 #elif defined(OS_WIN) | 16 #elif defined(OS_WIN) |
22 #include "base/win/windows_version.h" | 17 #include "base/win/windows_version.h" |
23 #endif | 18 #endif |
24 | 19 |
25 class FeedbackData; | 20 class FeedbackData; |
26 class Profile; | 21 class Profile; |
27 | 22 |
28 namespace content { | 23 namespace content { |
29 class WebContents; | 24 class WebContents; |
30 } | 25 } |
31 | 26 |
32 namespace chrome { | 27 namespace chrome { |
33 extern const char kAppLauncherCategoryTag[]; | 28 extern const char kAppLauncherCategoryTag[]; |
34 } // namespace chrome | 29 } // namespace chrome |
35 | 30 |
36 namespace feedback_util { | 31 namespace feedback_util { |
37 | 32 |
38 void SendReport(scoped_refptr<FeedbackData> data); | 33 void SendReport(scoped_refptr<FeedbackData> data); |
39 bool ZipString(const base::FilePath& filename, | 34 bool ZipString(const base::FilePath& filename, |
40 const std::string& data, std::string* compressed_data); | 35 const std::string& data, std::string* compressed_data); |
41 | 36 |
42 } // namespace feedback_util | 37 } // namespace feedback_util |
43 | 38 |
44 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ | 39 #endif // COMPONENTS_FEEDBACK_FEEDBACK_UTIL_H_ |
OLD | NEW |