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/chrome_extension_function.h" | 9 #include "chrome/browser/extensions/chrome_extension_function.h" |
10 #include "chrome/common/extensions/api/feedback_private.h" | 10 #include "chrome/common/extensions/api/feedback_private.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); | 32 static ProfileKeyedAPIFactory<FeedbackPrivateAPI>* GetFactoryInstance(); |
33 | 33 |
34 private: | 34 private: |
35 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; | 35 friend class ProfileKeyedAPIFactory<FeedbackPrivateAPI>; |
36 | 36 |
37 // ProfileKeyedAPI implementation. | 37 // ProfileKeyedAPI implementation. |
38 static const char* service_name() { | 38 static const char* service_name() { |
39 return "FeedbackPrivateAPI"; | 39 return "FeedbackPrivateAPI"; |
40 } | 40 } |
41 | 41 |
42 static const bool kServiceRedirectedInIncognito = true; | 42 static const bool kServiceHasOwnInstanceInIncognito = true; |
43 | 43 |
44 Profile* const profile_; | 44 Profile* const profile_; |
45 FeedbackService* service_; | 45 FeedbackService* service_; |
46 }; | 46 }; |
47 | 47 |
48 // Feedback strings. | 48 // Feedback strings. |
49 class FeedbackPrivateGetStringsFunction : public ChromeSyncExtensionFunction { | 49 class FeedbackPrivateGetStringsFunction : public ChromeSyncExtensionFunction { |
50 public: | 50 public: |
51 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", | 51 DECLARE_EXTENSION_FUNCTION("feedbackPrivate.getStrings", |
52 FEEDBACKPRIVATE_GETSTRINGS) | 52 FEEDBACKPRIVATE_GETSTRINGS) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual ~FeedbackPrivateSendFeedbackFunction() {} | 101 virtual ~FeedbackPrivateSendFeedbackFunction() {} |
102 virtual bool RunImpl() OVERRIDE; | 102 virtual bool RunImpl() OVERRIDE; |
103 | 103 |
104 private: | 104 private: |
105 void OnCompleted(bool success); | 105 void OnCompleted(bool success); |
106 }; | 106 }; |
107 | 107 |
108 } // namespace extensions | 108 } // namespace extensions |
109 | 109 |
110 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H
_ | 110 #endif // CHROME_BROWSER_EXTENSIONS_API_FEEDBACK_PRIVATE_FEEDBACK_PRIVATE_API_H
_ |
OLD | NEW |