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_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 <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 FeedbackData(); | 22 FeedbackData(); |
23 ~FeedbackData(); | 23 ~FeedbackData(); |
24 | 24 |
25 void SendReport(); | 25 void SendReport(); |
26 | 26 |
27 void UpdateData(Profile* profile, | 27 void UpdateData(Profile* profile, |
28 const std::string& target_tab_url, | 28 const std::string& target_tab_url, |
29 const std::string& category_tag, | 29 const std::string& category_tag, |
30 const std::string& page_url, | 30 const std::string& page_url, |
31 const std::string& description, | 31 const std::string& description, |
| 32 const std::string& user_email, |
32 ScreenshotDataPtr image | 33 ScreenshotDataPtr image |
33 #if defined(OS_CHROMEOS) | 34 #if defined(OS_CHROMEOS) |
34 , const std::string& user_email | |
35 , const bool send_sys_info | 35 , const bool send_sys_info |
36 , const bool sent_report | 36 , const bool sent_report |
37 , const std::string& timestamp | 37 , const std::string& timestamp |
38 #endif | 38 #endif |
39 ); | 39 ); |
40 | 40 |
41 #if defined(OS_CHROMEOS) | 41 #if defined(OS_CHROMEOS) |
42 void SyslogsComplete(chromeos::system::LogDictionaryType* logs, | 42 void SyslogsComplete(chromeos::system::LogDictionaryType* logs, |
43 std::string* zip_content); | 43 std::string* zip_content); |
44 #endif | 44 #endif |
45 | 45 |
46 const std::string& target_tab_url() const { return target_tab_url_; } | 46 const std::string& target_tab_url() const { return target_tab_url_; } |
47 | 47 |
48 const std::string& category_tag() const { return category_tag_; } | 48 const std::string& category_tag() const { return category_tag_; } |
49 const std::string& page_url() const { return page_url_; } | 49 const std::string& page_url() const { return page_url_; } |
50 const std::string& description() const { return description_; } | 50 const std::string& description() const { return description_; } |
| 51 const std::string& user_email() const { return user_email_; } |
51 ScreenshotDataPtr image() const { return image_; } | 52 ScreenshotDataPtr image() const { return image_; } |
52 #if defined(OS_CHROMEOS) | 53 #if defined(OS_CHROMEOS) |
53 const std::string& user_email() const { return user_email_; } | |
54 chromeos::system::LogDictionaryType* sys_info() const { return sys_info_; } | 54 chromeos::system::LogDictionaryType* sys_info() const { return sys_info_; } |
55 bool send_sys_info() const { return send_sys_info_; } | 55 bool send_sys_info() const { return send_sys_info_; } |
56 bool sent_report() const { return sent_report_; } | 56 bool sent_report() const { return sent_report_; } |
57 std::string* zip_content() const { return zip_content_; } | 57 std::string* zip_content() const { return zip_content_; } |
58 #endif | 58 #endif |
59 | 59 |
60 | 60 |
61 private: | 61 private: |
62 Profile* profile_; | 62 Profile* profile_; |
63 | 63 |
64 // Target tab url. | 64 // Target tab url. |
65 std::string target_tab_url_; | 65 std::string target_tab_url_; |
66 | 66 |
67 std::string category_tag_; | 67 std::string category_tag_; |
68 std::string page_url_; | 68 std::string page_url_; |
69 std::string description_; | 69 std::string description_; |
| 70 std::string user_email_; |
70 ScreenshotDataPtr image_; | 71 ScreenshotDataPtr image_; |
71 | 72 |
72 #if defined(OS_CHROMEOS) | 73 #if defined(OS_CHROMEOS) |
73 // Chromeos specific values for SendReport. | 74 // Chromeos specific values for SendReport. |
74 std::string user_email_; | |
75 chromeos::system::LogDictionaryType* sys_info_; | 75 chromeos::system::LogDictionaryType* sys_info_; |
76 // Content of the compressed system logs. | 76 // Content of the compressed system logs. |
77 std::string* zip_content_; | 77 std::string* zip_content_; |
78 std::string timestamp_; | 78 std::string timestamp_; |
79 // NOTE: Extra boolean sent_report_ is required because callback may | 79 // NOTE: Extra boolean sent_report_ is required because callback may |
80 // occur before or after we call SendReport(). | 80 // occur before or after we call SendReport(). |
81 bool sent_report_; | 81 bool sent_report_; |
82 // Flag to indicate to SyslogsComplete that it should send the report | 82 // Flag to indicate to SyslogsComplete that it should send the report |
83 bool send_sys_info_; | 83 bool send_sys_info_; |
84 #endif | 84 #endif |
85 }; | 85 }; |
86 | 86 |
87 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_ | 87 #endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_DATA_H_ |
OLD | NEW |