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

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

Issue 24436002: Remove screen dimensions from image sent with Feedback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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 | Annotate | Revision Log
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_DATA_H_ 5 #ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_ 6 #define CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 namespace base { 16 namespace base {
17 class FilePath; 17 class FilePath;
18 class RefCountedString; 18 class RefCountedString;
19 } 19 }
20 class Profile; 20 class Profile;
21 21
22 class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> { 22 class FeedbackData : public base::RefCountedThreadSafe<FeedbackData> {
23 public: 23 public:
24 typedef std::map<std::string, std::string> SystemLogsMap; 24 typedef std::map<std::string, std::string> SystemLogsMap;
25 25
26 static const char kScreensizeHeightKey[];
27 static const char kScreensizeWidthKey[];
28
29 // Determine if the given feedback value is small enough to not need to 26 // Determine if the given feedback value is small enough to not need to
30 // be compressed. 27 // be compressed.
31 static bool BelowCompressionThreshold(const std::string& content); 28 static bool BelowCompressionThreshold(const std::string& content);
32 29
33 FeedbackData(); 30 FeedbackData();
34 31
35 // Called once we've updated all the data from the feedback page. 32 // Called once we've updated all the data from the feedback page.
36 void OnFeedbackPageDataComplete(); 33 void OnFeedbackPageDataComplete();
37 34
38 // Sets the system information for this instance and kicks off its 35 // Sets the system information for this instance and kicks off its
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 112
116 bool feedback_page_data_complete_; 113 bool feedback_page_data_complete_;
117 bool syslogs_compression_complete_; 114 bool syslogs_compression_complete_;
118 115
119 bool report_sent_; 116 bool report_sent_;
120 117
121 DISALLOW_COPY_AND_ASSIGN(FeedbackData); 118 DISALLOW_COPY_AND_ASSIGN(FeedbackData);
122 }; 119 };
123 120
124 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_ 121 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698