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. 4 5 #ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ 6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ 7 8 #include <string> 9 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" 18 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 24 25 class FeedbackData; 26 class Profile; 27 28 namespace content { 29 class WebContents; 30 } 31 32 namespace chrome { 33 extern const char kAppLauncherCategoryTag[]; 34 } // namespace chrome 35 36 namespace feedback_util { 37 38 void SendReport(scoped_refptr<FeedbackData> data); 39 bool ZipString(const base::FilePath& filename, 40 const std::string& data, std::string* compressed_data); 41 42 } // namespace feedback_util 43 44 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ 45