| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES) | 69 ACTIVITYLOGPRIVATE_GETEXTENSIONACTIVITIES) |
| 70 | 70 |
| 71 protected: | 71 protected: |
| 72 ~ActivityLogPrivateGetExtensionActivitiesFunction() override {} | 72 ~ActivityLogPrivateGetExtensionActivitiesFunction() override {} |
| 73 | 73 |
| 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 scoped_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 ChromeAsyncExtensionFunction { |
| 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: |
| (...skipping 27 matching lines...) Expand all Loading... |
| 117 protected: | 117 protected: |
| 118 ~ActivityLogPrivateDeleteUrlsFunction() override {} | 118 ~ActivityLogPrivateDeleteUrlsFunction() override {} |
| 119 | 119 |
| 120 // ExtensionFunction: | 120 // ExtensionFunction: |
| 121 bool RunAsync() override; | 121 bool RunAsync() override; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace extensions | 124 } // namespace extensions |
| 125 | 125 |
| 126 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ | 126 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ |
| OLD | NEW |