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

Side by Side Diff: chrome/browser/extensions/api/feedback_private/feedback_service.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const SendFeedbackCallback& callback); 43 const SendFeedbackCallback& callback);
44 44
45 // Start to gather system information. 45 // Start to gather system information.
46 // The |callback| will be invoked once the query is completed. 46 // The |callback| will be invoked once the query is completed.
47 void GetSystemInformation(const GetSystemInformationCallback& callback); 47 void GetSystemInformation(const GetSystemInformationCallback& callback);
48 48
49 private: 49 private:
50 // Callbacks to receive blob data. 50 // Callbacks to receive blob data.
51 void AttachedFileCallback(scoped_refptr<feedback::FeedbackData> feedback_data, 51 void AttachedFileCallback(scoped_refptr<feedback::FeedbackData> feedback_data,
52 const SendFeedbackCallback& callback, 52 const SendFeedbackCallback& callback,
53 scoped_ptr<std::string> data, 53 std::unique_ptr<std::string> data,
54 int64_t total_blob_length); 54 int64_t total_blob_length);
55 void ScreenshotCallback(scoped_refptr<feedback::FeedbackData> feedback_data, 55 void ScreenshotCallback(scoped_refptr<feedback::FeedbackData> feedback_data,
56 const SendFeedbackCallback& callback, 56 const SendFeedbackCallback& callback,
57 scoped_ptr<std::string> data, 57 std::unique_ptr<std::string> data,
58 int64_t total_blob_length); 58 int64_t total_blob_length);
59 59
60 void OnSystemLogsFetchComplete( 60 void OnSystemLogsFetchComplete(
61 const GetSystemInformationCallback& callback, 61 const GetSystemInformationCallback& callback,
62 scoped_ptr<system_logs::SystemLogsResponse> sys_info); 62 std::unique_ptr<system_logs::SystemLogsResponse> sys_info);
63 63
64 // Checks if we have read all the blobs we need to; signals the feedback 64 // Checks if we have read all the blobs we need to; signals the feedback
65 // data object once all the requisite data has been populated. 65 // data object once all the requisite data has been populated.
66 void CompleteSendFeedback(scoped_refptr<feedback::FeedbackData> feedback_data, 66 void CompleteSendFeedback(scoped_refptr<feedback::FeedbackData> feedback_data,
67 const SendFeedbackCallback& callback); 67 const SendFeedbackCallback& callback);
68 68
69 DISALLOW_COPY_AND_ASSIGN(FeedbackService); 69 DISALLOW_COPY_AND_ASSIGN(FeedbackService);
70 }; 70 };
71 71
72 } // namespace extensions 72 } // namespace extensions
73 73
74 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_ 74 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698