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 "chrome/browser/extensions/api/profile_keyed_api_factory.h" | 8 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h" |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 #include "chrome/common/extensions/api/feedback_private.h" | 10 #include "chrome/common/extensions/api/feedback_private.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); | 31 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); |
32 | 32 |
33 private: | 33 private: |
34 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; | 34 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; |
35 | 35 |
36 // ProfileKeyedAPI implementation. | 36 // ProfileKeyedAPI implementation. |
37 static const char* service_name() { | 37 static const char* service_name() { |
38 return "FeedbackPrivateAPI"; | 38 return "FeedbackPrivateAPI"; |
39 } | 39 } |
40 | 40 |
| 41 static const bool kServiceRedirectedInIncognito = true; |
| 42 |
41 Profile* const profile_; | 43 Profile* const profile_; |
42 FeedbackService* service_; | 44 FeedbackService* service_; |
43 }; | 45 }; |
44 | 46 |
45 // Feedback strings. | 47 // Feedback strings. |
46 class FeedbackPrivateGetStringsFunction : public SyncExtensionFunction { | 48 class FeedbackPrivateGetStringsFunction : public SyncExtensionFunction { |
47 public: | 49 public: |
48 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", | 50 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", |
49 FEEDBACKPRIVATE_GETSTRINGS) | 51 FEEDBACKPRIVATE_GETSTRINGS) |
50 | 52 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 virtual ~FeedbackPrivateSendFeedbackFunction() {} | 91 virtual ~FeedbackPrivateSendFeedbackFunction() {} |
90 virtual bool RunImpl() OVERRIDE; | 92 virtual bool RunImpl() OVERRIDE; |
91 | 93 |
92 private: | 94 private: |
93 void OnCompleted(bool success); | 95 void OnCompleted(bool success); |
94 }; | 96 }; |
95 | 97 |
96 } // namespace extensions | 98 } // namespace extensions |
97 | 99 |
98 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H
_ | 100 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H
_ |
OLD | NEW |