Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/extensions/api/activity_log_private/activity_log_private_api.h

Issue 23629015: Add deletion to the activityLogPrivate API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaned up CountingPolicy::DoDeleteDatabase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698