| 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 // This extension API provides access to the Activity Log, which is a | 5 // This extension API provides access to the Activity Log, which is a |
| 6 // monitoring framework for extension behavior. Only specific Google-produced | 6 // monitoring framework for extension behavior. Only specific Google-produced |
| 7 // extensions should have access to it. | 7 // extensions should have access to it. |
| 8 | 8 |
| 9 #ifndef CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_
API_H_ | 9 #ifndef CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_
API_H_ |
| 10 #define CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_
API_H_ | 10 #define CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVATE_
API_H_ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 class ActivityLogPrivateGetExtensionActivitiesFunction | 64 class ActivityLogPrivateGetExtensionActivitiesFunction |
| 65 : public ChromeAsyncExtensionFunction { | 65 : public ChromeAsyncExtensionFunction { |
| 66 public: | 66 public: |
| 67 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.getExtensionActivities", | 67 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.getExtensionActivities", |
| 68 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES) | 68 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES) |
| 69 | 69 |
| 70 protected: | 70 protected: |
| 71 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {} | 71 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {} |
| 72 | 72 |
| 73 // ExtensionFunction: | 73 // ExtensionFunction: |
| 74 virtual bool RunImpl() OVERRIDE; | 74 virtual bool RunAsync() OVERRIDE; |
| 75 | 75 |
| 76 private: | 76 private: |
| 77 void OnLookupCompleted( | 77 void OnLookupCompleted( |
| 78 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); | 78 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 // The implementation of activityLogPrivate.deleteActivities | 81 // The implementation of activityLogPrivate.deleteActivities |
| 82 class ActivityLogPrivateDeleteActivitiesFunction | 82 class ActivityLogPrivateDeleteActivitiesFunction |
| 83 : public ChromeAsyncExtensionFunction { | 83 : public ChromeAsyncExtensionFunction { |
| 84 public: | 84 public: |
| 85 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities", | 85 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities", |
| 86 ACTIVITYLOGPRIVATE_DELETEACTIVITIES) | 86 ACTIVITYLOGPRIVATE_DELETEACTIVITIES) |
| 87 | 87 |
| 88 protected: | 88 protected: |
| 89 virtual ~ActivityLogPrivateDeleteActivitiesFunction() {} | 89 virtual ~ActivityLogPrivateDeleteActivitiesFunction() {} |
| 90 | 90 |
| 91 // ExtensionFunction: | 91 // ExtensionFunction: |
| 92 virtual bool RunImpl() OVERRIDE; | 92 virtual bool RunAsync() OVERRIDE; |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 // The implementation of activityLogPrivate.deleteDatabase | 95 // The implementation of activityLogPrivate.deleteDatabase |
| 96 class ActivityLogPrivateDeleteDatabaseFunction | 96 class ActivityLogPrivateDeleteDatabaseFunction |
| 97 : public ChromeAsyncExtensionFunction { | 97 : public ChromeAsyncExtensionFunction { |
| 98 public: | 98 public: |
| 99 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", | 99 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", |
| 100 ACTIVITYLOGPRIVATE_DELETEDATABASE) | 100 ACTIVITYLOGPRIVATE_DELETEDATABASE) |
| 101 | 101 |
| 102 protected: | 102 protected: |
| 103 virtual ~ActivityLogPrivateDeleteDatabaseFunction() {} | 103 virtual ~ActivityLogPrivateDeleteDatabaseFunction() {} |
| 104 | 104 |
| 105 // ExtensionFunction: | 105 // ExtensionFunction: |
| 106 virtual bool RunImpl() OVERRIDE; | 106 virtual bool RunAsync() OVERRIDE; |
| 107 }; | 107 }; |
| 108 | 108 |
| 109 // The implementation of activityLogPrivate.deleteUrls | 109 // The implementation of activityLogPrivate.deleteUrls |
| 110 class ActivityLogPrivateDeleteUrlsFunction | 110 class ActivityLogPrivateDeleteUrlsFunction |
| 111 : public ChromeAsyncExtensionFunction { | 111 : public ChromeAsyncExtensionFunction { |
| 112 public: | 112 public: |
| 113 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteUrls", | 113 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteUrls", |
| 114 ACTIVITYLOGPRIVATE_DELETEURLS) | 114 ACTIVITYLOGPRIVATE_DELETEURLS) |
| 115 | 115 |
| 116 protected: | 116 protected: |
| 117 virtual ~ActivityLogPrivateDeleteUrlsFunction() {} | 117 virtual ~ActivityLogPrivateDeleteUrlsFunction() {} |
| 118 | 118 |
| 119 // ExtensionFunction: | 119 // ExtensionFunction: |
| 120 virtual bool RunImpl() OVERRIDE; | 120 virtual bool RunAsync() OVERRIDE; |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace extensions | 123 } // namespace extensions |
| 124 | 124 |
| 125 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ |
| OLD | NEW |