Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: chrome/browser/feedback/feedback_util.h

Issue 19762005: Add the tracing manager (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix windows build Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ 6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // Generates bug report data. 69 // Generates bug report data.
70 static void SendReport(scoped_refptr<FeedbackData> data); 70 static void SendReport(scoped_refptr<FeedbackData> data);
71 // Redirects the user to Google's phishing reporting page. 71 // Redirects the user to Google's phishing reporting page.
72 static void ReportPhishing(content::WebContents* current_tab, 72 static void ReportPhishing(content::WebContents* current_tab,
73 const std::string& phishing_url); 73 const std::string& phishing_url);
74 // Maintains a single vector of bytes to store the last screenshot taken. 74 // Maintains a single vector of bytes to store the last screenshot taken.
75 static std::vector<unsigned char>* GetScreenshotPng(); 75 static std::vector<unsigned char>* GetScreenshotPng();
76 static void ClearScreenshotPng(); 76 static void ClearScreenshotPng();
77 static void SetScreenshotSize(const gfx::Rect& rect); 77 static void SetScreenshotSize(const gfx::Rect& rect);
78 static gfx::Rect& GetScreenshotSize(); 78 static gfx::Rect& GetScreenshotSize();
79 #if defined(OS_CHROMEOS)
80 static bool ZipString(const std::string& logs, std::string* compressed_logs); 79 static bool ZipString(const std::string& logs, std::string* compressed_logs);
81 #endif
82 80
83 class PostCleanup; 81 class PostCleanup;
84 82
85 private: 83 private:
86 // Add a key value pair to the feedback object 84 // Add a key value pair to the feedback object
87 static void AddFeedbackData( 85 static void AddFeedbackData(
88 userfeedback::ExtensionSubmit* feedback_data, 86 userfeedback::ExtensionSubmit* feedback_data,
89 const std::string& key, const std::string& value); 87 const std::string& key, const std::string& value);
90 88
91 // Send the feedback report 89 // Send the feedback report
92 static void SendFeedback(Profile* profile, 90 static void SendFeedback(Profile* profile,
93 std::string* feedback_data, 91 std::string* feedback_data,
94 int64 previous_delay); 92 int64 previous_delay);
95 93
96 #if defined(OS_CHROMEOS) 94 #if defined(OS_CHROMEOS)
97 static bool ValidFeedbackSize(const std::string& content); 95 static bool ValidFeedbackSize(const std::string& content);
98 #endif 96 #endif
99 97
100 DISALLOW_IMPLICIT_CONSTRUCTORS(FeedbackUtil); 98 DISALLOW_IMPLICIT_CONSTRUCTORS(FeedbackUtil);
101 }; 99 };
102 100
103 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_ 101 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698