Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / feedback / feedback_util.h
blob1fc9e64e6793d7270e6808adf598de7d854b42f4
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/files/file_path.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"
19 #if defined(OS_MACOSX)
20 #include "base/sys_info.h"
21 #elif defined(OS_WIN)
22 #include "base/win/windows_version.h"
23 #endif
25 class FeedbackData;
26 class Profile;
28 namespace content {
29 class WebContents;
32 namespace chrome {
33 extern const char kAppLauncherCategoryTag[];
34 } // namespace chrome
36 namespace feedback_util {
38 void SendReport(scoped_refptr<FeedbackData> data);
39 bool ZipString(const base::FilePath& filename,
40 const std::string& data, std::string* compressed_data);
42 } // namespace feedback_util
44 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_