| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // ExtensionFunction: | 74 // ExtensionFunction: |
| 75 bool RunAsync() override; | 75 bool RunAsync() override; |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 void OnLookupCompleted( | 78 void OnLookupCompleted( |
| 79 std::unique_ptr<std::vector<scoped_refptr<Action>>> activities); | 79 std::unique_ptr<std::vector<scoped_refptr<Action>>> activities); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 // The implementation of activityLogPrivate.deleteActivities | 82 // The implementation of activityLogPrivate.deleteActivities |
| 83 class ActivityLogPrivateDeleteActivitiesFunction | 83 class ActivityLogPrivateDeleteActivitiesFunction |
| 84 : public ChromeAsyncExtensionFunction { | 84 : public UIThreadExtensionFunction { |
| 85 public: | 85 public: |
| 86 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities", | 86 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities", |
| 87 ACTIVITYLOGPRIVATE_DELETEACTIVITIES) | 87 ACTIVITYLOGPRIVATE_DELETEACTIVITIES) |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 ~ActivityLogPrivateDeleteActivitiesFunction() override {} | 90 ~ActivityLogPrivateDeleteActivitiesFunction() override {} |
| 91 | 91 |
| 92 // ExtensionFunction: | 92 // ExtensionFunction: |
| 93 bool RunAsync() override; | 93 ResponseAction Run() override; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 // The implementation of activityLogPrivate.deleteDatabase | 96 // The implementation of activityLogPrivate.deleteDatabase |
| 97 class ActivityLogPrivateDeleteDatabaseFunction | 97 class ActivityLogPrivateDeleteDatabaseFunction |
| 98 : public ChromeAsyncExtensionFunction { | 98 : public UIThreadExtensionFunction { |
| 99 public: | 99 public: |
| 100 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", | 100 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", |
| 101 ACTIVITYLOGPRIVATE_DELETEDATABASE) | 101 ACTIVITYLOGPRIVATE_DELETEDATABASE) |
| 102 | 102 |
| 103 protected: | 103 protected: |
| 104 ~ActivityLogPrivateDeleteDatabaseFunction() override {} | 104 ~ActivityLogPrivateDeleteDatabaseFunction() override {} |
| 105 | 105 |
| 106 // ExtensionFunction: | 106 // ExtensionFunction: |
| 107 bool RunAsync() override; | 107 ResponseAction Run() override; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 // The implementation of activityLogPrivate.deleteUrls | 110 // The implementation of activityLogPrivate.deleteUrls |
| 111 class ActivityLogPrivateDeleteUrlsFunction | 111 class ActivityLogPrivateDeleteUrlsFunction : public UIThreadExtensionFunction { |
| 112 : public ChromeAsyncExtensionFunction { | |
| 113 public: | 112 public: |
| 114 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteUrls", | 113 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteUrls", |
| 115 ACTIVITYLOGPRIVATE_DELETEURLS) | 114 ACTIVITYLOGPRIVATE_DELETEURLS) |
| 116 | 115 |
| 117 protected: | 116 protected: |
| 118 ~ActivityLogPrivateDeleteUrlsFunction() override {} | 117 ~ActivityLogPrivateDeleteUrlsFunction() override {} |
| 119 | 118 |
| 120 // ExtensionFunction: | 119 // ExtensionFunction: |
| 121 bool RunAsync() override; | 120 ResponseAction Run() override; |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace extensions | 123 } // namespace extensions |
| 125 | 124 |
| 126 #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 |