| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ | 5 #ifndef COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ |
| 6 #define COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ | 6 #define COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 void set_screenshot_uuid(const std::string& uuid) { | 70 void set_screenshot_uuid(const std::string& uuid) { |
| 71 screenshot_uuid_ = uuid; | 71 screenshot_uuid_ = uuid; |
| 72 } | 72 } |
| 73 void set_trace_id(int trace_id) { trace_id_ = trace_id; } | 73 void set_trace_id(int trace_id) { trace_id_ = trace_id; } |
| 74 void set_send_report_callback( | 74 void set_send_report_callback( |
| 75 const base::Callback<void(scoped_refptr<FeedbackData>)>& send_report) { | 75 const base::Callback<void(scoped_refptr<FeedbackData>)>& send_report) { |
| 76 send_report_ = send_report; | 76 send_report_ = send_report; |
| 77 } | 77 } |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 virtual ~FeedbackData(); | 80 ~FeedbackData() override; |
| 81 | 81 |
| 82 // Called once a compression operation is complete. | 82 // Called once a compression operation is complete. |
| 83 void OnCompressComplete(); | 83 void OnCompressComplete(); |
| 84 | 84 |
| 85 void OnGetTraceData(int trace_id, | 85 void OnGetTraceData(int trace_id, |
| 86 scoped_refptr<base::RefCountedString> trace_data); | 86 scoped_refptr<base::RefCountedString> trace_data); |
| 87 | 87 |
| 88 base::Callback<void(scoped_refptr<FeedbackData>)> send_report_; | 88 base::Callback<void(scoped_refptr<FeedbackData>)> send_report_; |
| 89 | 89 |
| 90 content::BrowserContext* context_; | 90 content::BrowserContext* context_; |
| 91 | 91 |
| 92 std::string attached_filename_; | 92 std::string attached_filename_; |
| 93 std::string attached_file_uuid_; | 93 std::string attached_file_uuid_; |
| 94 std::string screenshot_uuid_; | 94 std::string screenshot_uuid_; |
| 95 | 95 |
| 96 int trace_id_; | 96 int trace_id_; |
| 97 | 97 |
| 98 int pending_op_count_; | 98 int pending_op_count_; |
| 99 bool report_sent_; | 99 bool report_sent_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(FeedbackData); | 101 DISALLOW_COPY_AND_ASSIGN(FeedbackData); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace feedback | 104 } // namespace feedback |
| 105 | 105 |
| 106 #endif // COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ | 106 #endif // COMPONENTS_FEEDBACK_FEEDBACK_DATA_H_ |
| OLD | NEW |