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

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

Issue 154053004: Introducing the activityLogPrivate.deleteActivities() API call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {} 70 virtual ~ActivityLogPrivateGetExtensionActivitiesFunction() {}
71 71
72 // ExtensionFunction: 72 // ExtensionFunction:
73 virtual bool RunImpl() OVERRIDE; 73 virtual bool RunImpl() OVERRIDE;
74 74
75 private: 75 private:
76 void OnLookupCompleted( 76 void OnLookupCompleted(
77 scoped_ptr<std::vector<scoped_refptr<Action> > > activities); 77 scoped_ptr<std::vector<scoped_refptr<Action> > > activities);
78 }; 78 };
79 79
80 // The implementation of activityLogPrivate.deleteActivities
81 class ActivityLogPrivateDeleteActivitiesFunction
82 : public ChromeAsyncExtensionFunction {
83 public:
84 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteActivities",
85 ACTIVITYLOGPRIVATE_DELETEACTIVITIES)
86
87 protected:
88 virtual ~ActivityLogPrivateDeleteActivitiesFunction() {}
89
90 // ExtensionFunction:
91 virtual bool RunImpl() OVERRIDE;
92 };
93
80 // The implementation of activityLogPrivate.deleteDatabase 94 // The implementation of activityLogPrivate.deleteDatabase
81 class ActivityLogPrivateDeleteDatabaseFunction 95 class ActivityLogPrivateDeleteDatabaseFunction
82 : public ChromeAsyncExtensionFunction { 96 : public ChromeAsyncExtensionFunction {
83 public: 97 public:
84 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase", 98 DECLARE_EXTENSION_FUNCTION("activityLogPrivate.deleteDatabase",
85 ACTIVITYLOGPRIVATE_DELETEDATABASE) 99 ACTIVITYLOGPRIVATE_DELETEDATABASE)
86 100
87 protected: 101 protected:
88 virtual ~ActivityLogPrivateDeleteDatabaseFunction() {} 102 virtual ~ActivityLogPrivateDeleteDatabaseFunction() {}
89 103
(...skipping 11 matching lines...) Expand all
101 protected: 115 protected:
102 virtual ~ActivityLogPrivateDeleteUrlsFunction() {} 116 virtual ~ActivityLogPrivateDeleteUrlsFunction() {}
103 117
104 // ExtensionFunction: 118 // ExtensionFunction:
105 virtual bool RunImpl() OVERRIDE; 119 virtual bool RunImpl() OVERRIDE;
106 }; 120 };
107 121
108 } // namespace extensions 122 } // namespace extensions
109 123
110 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA TE_API_H_ 124 #endif // CHROME_BROWSER_EXTENSIONS_API_ACTIVITY_LOG_PRIVATE_ACTIVITY_LOG_PRIVA TE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698