Chromium Code Reviews| Index: chrome/browser/extensions/api/api_function.h |
| diff --git a/chrome/browser/extensions/api/api_function.h b/chrome/browser/extensions/api/api_function.h |
| index 270e0854304a83de44cd00bb92682310df4945ae..21992537e10da847abfab43a93d3ba49735ba929 100644 |
| --- a/chrome/browser/extensions/api/api_function.h |
| +++ b/chrome/browser/extensions/api/api_function.h |
| @@ -12,9 +12,22 @@ namespace extensions { |
| class ApiResourceEventNotifier; |
| +class ApiFunction : public UIThreadExtensionFunction { |
|
miket_OOO
2012/10/12 18:27:33
mihaip and aa have inquired about the future of th
|
| + protected: |
| + ApiFunction(); |
| + virtual ~ApiFunction(); |
| + |
| + // Looks for a kSrcId key that might have been added to a create method's |
| + // options object. |
| + int ExtractSrcId(const DictionaryValue* options); |
| + |
| + // Utility. |
| + ApiResourceEventNotifier* CreateEventNotifier(int src_id); |
| +}; |
| + |
| // AsyncApiFunction provides convenient thread management for APIs that need to |
| // do essentially all their work on a thread other than the UI thread. |
| -class AsyncApiFunction : public AsyncExtensionFunction { |
| +class AsyncApiFunction : public ApiFunction { |
| protected: |
| AsyncApiFunction(); |
| virtual ~AsyncApiFunction(); |
| @@ -40,13 +53,6 @@ class AsyncApiFunction : public AsyncExtensionFunction { |
| // Respond. Guaranteed to happen on UI thread. |
| virtual bool Respond() = 0; |
| - // Looks for a kSrcId key that might have been added to a create method's |
| - // options object. |
| - int ExtractSrcId(const DictionaryValue* options); |
| - |
| - // Utility. |
| - ApiResourceEventNotifier* CreateEventNotifier(int src_id); |
| - |
| // ExtensionFunction::RunImpl() |
| virtual bool RunImpl() OVERRIDE; |