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

Side by Side Diff: components/feedback/feedback_data.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « components/favicon_base/select_favicon_frames.cc ('k') | components/feedback/feedback_uploader_chrome.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698