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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log.h

Issue 154053004: Introducing the activityLogPrivate.deleteActivities() API call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing 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
« no previous file with comments | « no previous file | chrome/browser/extensions/activity_log/activity_log.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 virtual void OnApiFunctionCalled( 105 virtual void OnApiFunctionCalled(
106 const std::string& extension_id, 106 const std::string& extension_id,
107 const std::string& api_name, 107 const std::string& api_name,
108 scoped_ptr<base::ListValue> event_args) OVERRIDE; 108 scoped_ptr<base::ListValue> event_args) OVERRIDE;
109 109
110 // BrowserContextKeyedService 110 // BrowserContextKeyedService
111 virtual void Shutdown() OVERRIDE; 111 virtual void Shutdown() OVERRIDE;
112 112
113 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 113 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
114 114
115 // Remove actions from the activity log database which IDs specified in the
116 // action_ids array.
117 void RemoveActions(const std::vector<int64>& action_ids);
118
115 // Clean up URLs from the activity log database. 119 // Clean up URLs from the activity log database.
116 // If restrict_urls is empty then all URLs in the activity log database are 120 // If restrict_urls is empty then all URLs in the activity log database are
117 // removed, otherwise only those in restrict_urls are removed. 121 // removed, otherwise only those in restrict_urls are removed.
118 void RemoveURLs(const std::vector<GURL>& restrict_urls); 122 void RemoveURLs(const std::vector<GURL>& restrict_urls);
119 void RemoveURLs(const std::set<GURL>& restrict_urls); 123 void RemoveURLs(const std::set<GURL>& restrict_urls);
120 void RemoveURL(const GURL& url); 124 void RemoveURL(const GURL& url);
121 125
122 // Deletes the database associated with the policy that's currently in use. 126 // Deletes the database associated with the policy that's currently in use.
123 void DeleteDatabase(); 127 void DeleteDatabase();
124 128
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 virtual content::BrowserContext* GetBrowserContextToUse( 237 virtual content::BrowserContext* GetBrowserContextToUse(
234 content::BrowserContext* context) const OVERRIDE; 238 content::BrowserContext* context) const OVERRIDE;
235 239
236 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); 240 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory);
237 }; 241 };
238 242
239 243
240 } // namespace extensions 244 } // namespace extensions
241 245
242 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 246 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
OLDNEW
« 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