OLD | NEW |
---|---|
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 "base/feature_list.h" | |
8 #include "chrome/browser/extensions/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
9 #include "chrome/common/extensions/api/feedback_private.h" | 10 #include "chrome/common/extensions/api/feedback_private.h" |
10 #include "extensions/browser/browser_context_keyed_api_factory.h" | 11 #include "extensions/browser/browser_context_keyed_api_factory.h" |
11 #include "extensions/browser/extension_function.h" | 12 #include "extensions/browser/extension_function.h" |
12 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
13 | 14 |
14 namespace extensions { | 15 namespace extensions { |
15 | 16 |
17 // Allows enabling/disabling SRT Prompt as a Variations feature. | |
18 extern const base::Feature kSrtPromptOnFeedbackForm; | |
afakhry
2016/06/22 12:58:42
If it's only needed in feedback_private_api.cc, is
| |
19 | |
16 class FeedbackService; | 20 class FeedbackService; |
17 | 21 |
18 class FeedbackPrivateAPI : public BrowserContextKeyedAPI { | 22 class FeedbackPrivateAPI : public BrowserContextKeyedAPI { |
19 public: | 23 public: |
20 explicit FeedbackPrivateAPI(content::BrowserContext* context); | 24 explicit FeedbackPrivateAPI(content::BrowserContext* context); |
21 ~FeedbackPrivateAPI() override; | 25 ~FeedbackPrivateAPI() override; |
22 | 26 |
23 FeedbackService* GetService() const; | 27 FeedbackService* GetService() const; |
24 | 28 |
25 void RequestFeedback(const std::string& description_template, | 29 void RequestFeedback(const std::string& description_template, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
116 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT); | 120 FEEDBACKPRIVATE_LOGSRTPROMPTRESULT); |
117 | 121 |
118 protected: | 122 protected: |
119 ~FeedbackPrivateLogSrtPromptResultFunction() override {} | 123 ~FeedbackPrivateLogSrtPromptResultFunction() override {} |
120 AsyncExtensionFunction::ResponseAction Run() override; | 124 AsyncExtensionFunction::ResponseAction Run() override; |
121 }; | 125 }; |
122 | 126 |
123 } // namespace extensions | 127 } // namespace extensions |
124 | 128 |
125 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ | 129 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H _ |
OLD | NEW |