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

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

Issue 18878009: Add functions to clean URLs from the activity log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use const_iterator 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
« 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void OnAppsReordered() OVERRIDE {} 115 virtual void OnAppsReordered() OVERRIDE {}
116 virtual void OnAppInstalledToAppList( 116 virtual void OnAppInstalledToAppList(
117 const std::string& extension_id) OVERRIDE {} 117 const std::string& extension_id) OVERRIDE {}
118 virtual void OnShutdown() OVERRIDE {} 118 virtual void OnShutdown() OVERRIDE {}
119 119
120 // BrowserContextKeyedService 120 // BrowserContextKeyedService
121 virtual void Shutdown() OVERRIDE; 121 virtual void Shutdown() OVERRIDE;
122 122
123 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 123 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
124 124
125 // Clean up URLs from the activity log database.
126 // If restrict_urls is empty then all URLs in the activity log database are
127 // removed, otherwise only those in restrict_urls are removed.
128 virtual void RemoveURLs(const std::vector<GURL>& restrict_urls);
129 virtual void RemoveURLs(const std::set<GURL>& restrict_urls);
130 virtual void RemoveURL(const GURL& url);
131
125 private: 132 private:
126 friend class ActivityLogFactory; 133 friend class ActivityLogFactory;
127 friend class ActivityLogTest; 134 friend class ActivityLogTest;
128 friend class RenderViewActivityLogTest; 135 friend class RenderViewActivityLogTest;
129 136
130 explicit ActivityLog(Profile* profile); 137 explicit ActivityLog(Profile* profile);
131 virtual ~ActivityLog(); 138 virtual ~ActivityLog();
132 139
133 // Delayed initialization of Install Tracker which waits until after the 140 // Delayed initialization of Install Tracker which waits until after the
134 // ExtensionSystem/ExtensionService are done with their own setup. 141 // ExtensionSystem/ExtensionService are done with their own setup.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 virtual content::BrowserContext* GetBrowserContextToUse( 217 virtual content::BrowserContext* GetBrowserContextToUse(
211 content::BrowserContext* context) const OVERRIDE; 218 content::BrowserContext* context) const OVERRIDE;
212 219
213 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); 220 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory);
214 }; 221 };
215 222
216 223
217 } // namespace extensions 224 } // namespace extensions
218 225
219 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 226 #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