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

Unified Diff: chrome/browser/extensions/activity_log/activity_log.h

Issue 23980002: Activity Log: allow searching by day (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed error from last rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_log/activity_log.h
diff --git a/chrome/browser/extensions/activity_log/activity_log.h b/chrome/browser/extensions/activity_log/activity_log.h
index 0c7a0c0ad4108b2793be12a176d7f9d3cc1b8ddc..1869e7f87c339c1cbf5120331df0c72f95afc12c 100644
--- a/chrome/browser/extensions/activity_log/activity_log.h
+++ b/chrome/browser/extensions/activity_log/activity_log.h
@@ -64,25 +64,17 @@ class ActivityLog : public BrowserContextKeyedService,
// mode.
void LogAction(scoped_refptr<Action> action);
- // Retrieves the list of actions for a given extension on a specific day.
- // Today is 0, yesterday is 1, etc. Returns one day at a time.
- // Response is sent to the method/function in the callback.
- // Use base::Bind to create the callback.
- void GetActions(const std::string& extension_id,
- const int day,
- const base::Callback
- <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>&
- callback);
-
// Gets all actions that match the specified fields. URLs are treated like
// prefixes; other fields are exact matches. Empty strings are not matched to
- // anything.
+ // anything. For daysAgo, today is 0, yesterday is 1, etc.; a negative number
+ // of days is treated as a missing parameter.
void GetFilteredActions(
const std::string& extension_id,
const Action::ActionType type,
const std::string& api_name,
const std::string& page_url,
const std::string& arg_url,
+ const int days_ago,
const base::Callback
<void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback);
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698