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

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

Issue 2934303002: Provide a better way of injecting extra diagnostics in feedbacks (Closed)
Patch Set: pkasting's comments Created 3 years, 6 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_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "chrome/browser/extensions/chrome_extension_function.h" 10 #include "chrome/browser/extensions/chrome_extension_function.h"
(...skipping 16 matching lines...) Expand all
27 ~FeedbackPrivateAPI() override; 27 ~FeedbackPrivateAPI() override;
28 28
29 FeedbackService* GetService() const; 29 FeedbackService* GetService() const;
30 30
31 #if defined(OS_CHROMEOS) 31 #if defined(OS_CHROMEOS)
32 LogSourceAccessManager* GetLogSourceAccessManager() const; 32 LogSourceAccessManager* GetLogSourceAccessManager() const;
33 #endif // defined(OS_CHROMEOS) 33 #endif // defined(OS_CHROMEOS)
34 34
35 void RequestFeedback(const std::string& description_template, 35 void RequestFeedback(const std::string& description_template,
36 const std::string& category_tag, 36 const std::string& category_tag,
37 const std::string& extra_diagnostics,
37 const GURL& page_url); 38 const GURL& page_url);
38 39
39 void RequestFeedbackForFlow(const std::string& description_template, 40 void RequestFeedbackForFlow(const std::string& description_template,
40 const std::string& category_tag, 41 const std::string& category_tag,
42 const std::string& extra_diagnostics,
41 const GURL& page_url, 43 const GURL& page_url,
42 api::feedback_private::FeedbackFlow flow); 44 api::feedback_private::FeedbackFlow flow);
43 45
44 // BrowserContextKeyedAPI implementation. 46 // BrowserContextKeyedAPI implementation.
45 static BrowserContextKeyedAPIFactory<FeedbackPrivateAPI>* 47 static BrowserContextKeyedAPIFactory<FeedbackPrivateAPI>*
46 GetFactoryInstance(); 48 GetFactoryInstance();
47 49
48 private: 50 private:
49 friend class BrowserContextKeyedAPIFactory<FeedbackPrivateAPI>; 51 friend class BrowserContextKeyedAPIFactory<FeedbackPrivateAPI>;
50 52
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT); 150 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT);
149 151
150 protected: 152 protected:
151 ~FeedbackPrivateLogSrtPromptResultFunction() override {} 153 ~FeedbackPrivateLogSrtPromptResultFunction() override {}
152 AsyncExtensionFunction::ResponseAction Run() override; 154 AsyncExtensionFunction::ResponseAction Run() override;
153 }; 155 };
154 156
155 } // namespace extensions 157 } // namespace extensions
156 158
157 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ 159 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698