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 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {} | 74 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {} |
75 | 75 |
76 // ExtensionFunction: | 76 // ExtensionFunction: |
77 virtual bool RunImpl() OVERRIDE; | 77 virtual bool RunImpl() OVERRIDE; |
78 | 78 |
79 private: | 79 private: |
80 void OnLookupCompleted( | 80 void OnLookupCompleted( |
81 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); | 81 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); |
82 }; | 82 }; |
83 | 83 |
| 84 // The implementation of activityLogPrivate.deleteDatabase |
| 85 class ActivityLogPrivateDeleteDatabaseFunction |
| 86 : public AsyncExtensionFunction { |
| 87 public: |
| 88 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", |
| 89 ACTIVITYLOGPRIVATE_DELETEDATABASE) |
| 90 |
| 91 protected: |
| 92 virtual ~ActivityLogPrivateDeleteDatabaseFunction() {} |
| 93 |
| 94 // ExtensionFunction: |
| 95 virtual bool RunImpl() OVERRIDE; |
| 96 }; |
| 97 |
| 98 // The implementation of activityLogPrivate.deleteUrls |
| 99 class ActivityLogPrivateDeleteUrlsFunction |
| 100 : public AsyncExtensionFunction { |
| 101 public: |
| 102 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteUrls", |
| 103 ACTIVITYLOGPRIVATE_DELETEURLS) |
| 104 |
| 105 protected: |
| 106 virtual ~ActivityLogPrivateDeleteUrlsFunction() {} |
| 107 |
| 108 // ExtensionFunction: |
| 109 virtual bool RunImpl() OVERRIDE; |
| 110 }; |
| 111 |
84 } // namespace extensions | 112 } // namespace extensions |
85 | 113 |
86 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ | 114 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA
TE_API_H_ |
OLD | NEW |